84% ajax-manufactory

Code Review | AJAX Manufactory

WordPress plugin AJAX Manufactory scored84%from 54 tests.

About plugin

  • Plugin page: ajax-manufactory
  • Plugin version: 1.7.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Jun 28, 2019
  • Number of updates: 31
  • Update frequency: every 44.8 days
  • Top authors: Epsiloncool (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /3,745 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.03MB] [CPU: ▲0.06ms] Passed 4 tests

Server-side resources used by AJAX Manufactory
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.36 ▲4.34
Dashboard /wp-admin3.33 ▲0.0350.46 ▼0.15
Posts /wp-admin/edit.php3.45 ▲0.0951.17 ▲1.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.50 ▼2.56
Media Library /wp-admin/upload.php3.26 ▲0.0335.41 ▲1.21

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by AJAX Manufactory
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.74 ▼0.617.88 ▲5.9840.34 ▼3.93
Dashboard /wp-admin2,202 ▲225.61 ▼0.0489.47 ▼0.2139.54 ▼6.52
Posts /wp-admin/edit.php2,104 ▲71.99 ▼0.0139.61 ▲1.6537.86 ▼0.01
Add New Post /wp-admin/post-new.php1,530 ▼723.13 ▲5.03615.83 ▼11.1858.24 ▼13.37
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.0199.46 ▼5.3844.16 ▼4.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ajax-manufactory/ajax-manufactory.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (A screenshot of simple example) image not found
The official readme.txt might help

ajax-manufactory/ajax-manufactory.php 92% from 13 tests

The main file in "AJAX Manufactory" v. 1.7.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin239 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript135133
PHP12934106

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected