89% worthless-plugin

Code Review | Worthless Plugin

WordPress plugin Worthless Plugin scored89%from 54 tests.

About plugin

  • Plugin page: worthless-plugin
  • Plugin version: 3.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2008
  • Latest release: Nov 12, 2023
  • Number of updates: 47
  • Update frequency: every 118.9 days
  • Top authors: adegans (76.6%)SHRIKEE (25.53%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,162 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.47ms] 75% from 4 tests

Analyzing server-side resources used by Worthless Plugin
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,731.69ms on /wp-admin/options-general.php?page=worthless-plugin)
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.87 ▼11.05
Dashboard /wp-admin3.38 ▲0.0845.16 ▼2.27
Posts /wp-admin/edit.php3.43 ▲0.0748.36 ▼2.47
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.25 ▼2.08
Media Library /wp-admin/upload.php3.30 ▲0.0731.78 ▼1.38
Worthless Plugin /wp-admin/options-general.php?page=worthless-plugin4.511,731.69

Server storage [IO: ▲0.07MB] [DB: ▲0.10MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by Worthless Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.24 ▼0.041.62 ▼0.1639.54 ▼5.00
Dashboard /wp-admin2,201 ▲275.62 ▲0.1091.95 ▼9.3841.48 ▼2.08
Posts /wp-admin/edit.php2,109 ▲91.96 ▲0.0138.88 ▲0.4235.52 ▼0.96
Add New Post /wp-admin/post-new.php1,540 ▲1425.44 ▲2.41603.14 ▼20.4574.54 ▲19.99
Media Library /wp-admin/upload.php1,409 ▲94.19 ▼0.0498.58 ▲1.4241.64 ▲1.13
Worthless Plugin /wp-admin/options-general.php?page=worthless-plugin9961.9936.7851.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: dashboard, adrotate, notification, fun, admin...

worthless-plugin/worthless-plugin.php 92% from 13 tests

The primary PHP file in "Worthless Plugin" version 3.4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin218 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12139183
CSS17335

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions6
▷ Named functions6100.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