73% wootomation

Code Review | Wootomation - Machine Learning AI

WordPress plugin Wootomation - Machine Learning AI scored73%from 54 tests.

About plugin

  • Plugin page: wootomation
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Oct 13, 2019
  • Latest release: Jul 30, 2021
  • Number of updates: 28
  • Update frequency: every 23.4 days
  • Top authors: dragosmicu (96.43%)wpharvest (7.14%)

Code review

54 tests

User reviews

7 reviews

Install metrics

90+ active /2,457 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.91ms] Passed 4 tests

Analyzing server-side resources used by Wootomation - Machine Learning AI
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1334.12 ▼13.05
Dashboard /wp-admin3.46 ▲0.1146.08 ▼13.79
Posts /wp-admin/edit.php3.51 ▲0.1552.00 ▼0.55
Add New Post /wp-admin/post-new.php5.99 ▲0.1096.42 ▼0.23
Media Library /wp-admin/upload.php3.32 ▲0.0935.62 ▲0.31
Wootomation /wp-admin/admin.php?page=wootomation3.2833.31
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.3835.17

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: 2 new tables, 8 new options
New tables
wp_wootomation_suggestions
wp_wootomation_indexing
New WordPress options
can_compress_scripts
wootomation_suggestions_db_version
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
wootomation_indexing_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Wootomation - Machine Learning AI
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲8513.28 ▼1.091.76 ▼0.0544.59 ▲6.64
Dashboard /wp-admin2,244 ▲535.89 ▲1.00107.90 ▲2.0746.93 ▲7.55
Posts /wp-admin/edit.php2,135 ▲462.07 ▲0.0241.17 ▲6.5841.29 ▲5.64
Add New Post /wp-admin/post-new.php1,557 ▲4318.56 ▲0.87611.98 ▼53.0558.65 ▲6.14
Media Library /wp-admin/upload.php1,428 ▲434.31 ▲0.1498.80 ▲0.6147.09 ▲4.33
Wootomation /wp-admin/admin.php?page=wootomation9422.2426.1733.72
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9722.1027.1532.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_wootomation_indexing
    • wp_wootomation_suggestions
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • wootomation_indexing_db_version
    • widget_theysaidso_widget
    • db_upgraded
    • wootomation_suggestions_db_version
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wootomation/vendor/tgm/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

wootomation/wootomation.php 85% from 13 tests

The principal PHP file in "Wootomation - Machine Learning AI" v. 2.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,204 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP147191,9232,829
Markdown31030340
CSS1224131
JavaScript111861
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity30.87
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods169
▷ Static methods2011.83%
▷ Public methods14384.62%
▷ Protected methods2514.79%
▷ Private methods10.59%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin