84% optimator

Code Review | Clean Unnecessary Data from WordPress Database - Optimator

WordPress plugin Clean Unnecessary Data from WordPress Database - Optimator scored84%from 54 tests.

About plugin

  • Plugin page: optimator
  • Plugin version: 0.0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7
  • WordPress version: 6.3.1
  • First release: Mar 27, 2021
  • Latest release: Jul 9, 2021
  • Number of updates: 3
  • Update frequency: every 34.7 days
  • Top authors: engramium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Clean Unnecessary Data from WordPress Database - Optimator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.46 ▼6.41
Dashboard /wp-admin3.35 ▲0.0551.87 ▲0.15
Posts /wp-admin/edit.php3.40 ▲0.0551.66 ▼2.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0599.71 ▼7.57
Media Library /wp-admin/upload.php3.28 ▲0.0535.99 ▼3.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Clean Unnecessary Data from WordPress Database - Optimator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.74 ▲0.311.76 ▼0.0242.28 ▼8.98
Dashboard /wp-admin2,214 ▲405.54 ▼0.1394.48 ▼5.1937.24 ▼3.22
Posts /wp-admin/edit.php2,119 ▲162.03 ▲0.0340.85 ▲1.7236.17 ▲3.65
Add New Post /wp-admin/post-new.php1,547 ▲518.11 ▼0.01659.70 ▼3.5684.81 ▲14.76
Media Library /wp-admin/upload.php1,410 ▲74.20 ▲0.0296.16 ▼5.7743.65 ▼0.52

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimator/optimator-dashboard.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
3 plugin tags: revision, cleaner, draft

optimator/optimator.php Passed 13 tests

The entry point to "Clean Unnecessary Data from WordPress Database - Optimator" version 0.0.0.1 is a PHP file that has certain tags in its header comment area
82 characters long description:
Clean Unnecessary Data from WordPress Database to keep better everyday performance

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin236 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22813236

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin