78% tao-form-ajax

Code Review | Tao Form Ajax

WordPress plugin Tao Form Ajax scored 78% from 54 tests.

About plugin

  • Plugin page: tao-form-ajax
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 8, 2014
  • Latest release: Dec 23, 2014
  • Number of updates: 4
  • Update frequency: every 57.5 days
  • Top authors: taotiago (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,065 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.61ms] Passed 4 tests

Analyzing server-side resources used by Tao Form Ajax
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.46 ▼3.19
Dashboard /wp-admin3.34 ▲0.0449.82 ▼1.76
Posts /wp-admin/edit.php3.39 ▲0.0449.04 ▲1.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.84 ▲5.71
Media Library /wp-admin/upload.php3.27 ▲0.0438.41 ▲5.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables
wp_tao_form
New WordPress options
widget_theysaidso_widget
widget_tao_form
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Tao Form Ajax
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲16513.69 ▼0.695.27 ▲3.5943.56 ▼2.85
Dashboard /wp-admin2,222 ▲305.89 ▲0.99111.65 ▲1.9041.25 ▲1.50
Posts /wp-admin/edit.php2,108 ▲192.02 ▲0.0641.38 ▲7.0934.70 ▲1.65
Add New Post /wp-admin/post-new.php1,560 ▲1818.48 ▲0.03587.64 ▼93.0757.71 ▲4.85
Media Library /wp-admin/upload.php1,407 ▲194.23 ▲0.0494.37 ▼2.9340.35 ▼2.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_tao_form

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tao-form-ajax/html/form-cadastro.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tao-form-ajax/html/form-export.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tao-form-ajax/tao-form-ajax.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Exportar Contatos.), #2 (Widget Newsletter.)
Please take inspiration from this readme.txt

tao-form-ajax/tao-form-ajax.php Passed 13 tests

This is the main PHP file of "Tao Form Ajax" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
24 characters long description:
Tao Form Ajax BinDigital

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin211 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45327161
JavaScript14250

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods880.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
1.png30.55KB11.59KB▼ 62.05%
2.png134.25KB48.64KB▼ 63.77%