84% tada

Code Review | Tada: Instant Webpage Loading, Fast Website Browsing

WordPress plugin Tada: Instant Webpage Loading, Fast Website Browsing scored84%from 54 tests.

About plugin

  • Plugin page: tada
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Mar 17, 2019
  • Latest release: Mar 5, 2023
  • Number of updates: 14
  • Update frequency: every 103.5 days
  • Top authors: BinaryMoon (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /4,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.57ms] Passed 4 tests

An overview of server-side resources used by Tada: Instant Webpage Loading, Fast Website Browsing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.70 ▼3.82
Dashboard /wp-admin3.31 ▼0.0449.01 ▼12.70
Posts /wp-admin/edit.php3.36 ▲0.0044.50 ▼3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.95 ▼22.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.12 ▼2.53

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Tada: Instant Webpage Loading, Fast Website Browsing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.27 ▼0.872.07 ▲0.4942.75 ▲2.62
Dashboard /wp-admin2,209 ▲215.89 ▲1.00103.08 ▼9.6042.92 ▼2.82
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0034.38 ▼8.7034.19 ▼1.08
Add New Post /wp-admin/post-new.php1,538 ▲2423.26 ▲5.37585.32 ▼81.8255.75 ▲1.55
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.06118.91 ▲19.5950.31 ▲8.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tada/index.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: speed, optimization, ux, user experience

tada/index.php 92% from 13 tests

"Tada: Instant Webpage Loading, Fast Website Browsing" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tada.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin295 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37410282
PHP1112713

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin