90% wp-plugin-confirm

Code Review | WP Plugin Confirm

WordPress plugin WP Plugin Confirm scored90%from 54 tests.

About plugin

  • Plugin page: wp-plugin-confirm
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Apr 12, 2019
  • Number of updates: 7
  • Update frequency: every 6.4 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /731 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.36ms] Passed 4 tests

Analyzing server-side resources used by WP Plugin Confirm
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.11 ▼1.64
Dashboard /wp-admin3.31 ▼0.0345.13 ▼11.90
Posts /wp-admin/edit.php3.36 ▲0.0145.33 ▼1.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.00 ▼10.37
Media Library /wp-admin/upload.php3.23 ▲0.0138.91 ▲3.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Plugin Confirm
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10513.22 ▼1.291.69 ▼0.2041.89 ▲2.56
Dashboard /wp-admin2,240 ▲544.81 ▼0.11110.36 ▼0.7841.08 ▼1.10
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0038.43 ▼2.2636.41 ▼0.65
Add New Post /wp-admin/post-new.php1,518 ▲417.85 ▲0.27678.21 ▲54.2361.15 ▼7.33
Media Library /wp-admin/upload.php1,392 ▲74.26 ▲0.0894.11 ▼6.3343.52 ▲2.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed: Please take inspiration from this readme.txt

wp-plugin-confirm/wp-plugin-confirm.php Passed 13 tests

The primary PHP file in "WP Plugin Confirm" version 1.0.1 is used by WordPress to initiate all plugin functionality
121 characters long description:
Displays a confirmation dialog when plug-ins are enabled / disabled. Display plug enable / disable logs on the dashboard.

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
Good job! No executable or dangerous file extensions detected102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1163584
JavaScript10010
CSS1108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin