84% wp-useful-plugins

Code Review | WP Useful Plugins

WordPress plugin WP Useful Plugins scored84%from 54 tests.

About plugin

  • Plugin page: wp-useful-plugins
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Dec 5, 2014
  • Number of updates: 12
  • Update frequency: every 64.2 days
  • Top authors: masoudin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.20ms] Passed 4 tests

An overview of server-side resources used by WP Useful Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.59 ▼7.19
Dashboard /wp-admin3.32 ▲0.0251.87 ▼10.66
Posts /wp-admin/edit.php3.37 ▲0.0246.37 ▼7.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.93 ▼11.67
Media Library /wp-admin/upload.php3.25 ▲0.0235.72 ▲0.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Useful Plugins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.35 ▲0.081.65 ▼0.5342.18 ▼0.78
Dashboard /wp-admin2,216 ▲395.69 ▲0.0987.14 ▼14.9439.06 ▼4.68
Posts /wp-admin/edit.php2,118 ▲182.01 ▼0.0235.35 ▼4.7138.22 ▲1.36
Add New Post /wp-admin/post-new.php1,541 ▲1323.25 ▲0.20685.72 ▲19.8248.76 ▼4.73
Media Library /wp-admin/upload.php1,418 ▲154.22 ▲0.05117.68 ▲14.4848.72 ▲5.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-useful-plugins/inc/forms.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-useful-plugins/wp-useful-plugins.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: plugins, useful plugins, wordpress

wp-useful-plugins/wp-useful-plugins.php Passed 13 tests

The main PHP script in "WP Useful Plugins" version 1.0 is automatically included on every request by WordPress
57 characters long description:
Install the plugins I think are really awesome in one go!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin299 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22913117
CSS1203113
JSON12045
SVG10024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin