Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.23MB] [CPU: ▼34,871.44ms] Passed 4 tests
Analyzing server-side resources used by WP Approve User
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▼0.95 | 43.91 ▼139,459.77 |
Dashboard /wp-admin | 3.36 ▲0.01 | 54.34 ▼2.53 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 51.55 ▼6.26 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 89.74 ▼17.21 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 38.32 ▲3.93 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Approve User
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.38 ▼0.24 | 1.98 ▲0.40 | 46.31 ▲6.29 |
Dashboard /wp-admin | 2,211 ▲31 | 5.62 ▼0.05 | 89.06 ▼0.21 | 40.48 ▼4.42 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.01 ▲0.03 | 36.96 ▼2.08 | 39.55 ▲5.10 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.33 ▲0.50 | 654.53 ▼33.99 | 61.50 ▲9.51 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.21 ▼0.02 | 102.93 ▼2.17 | 44.80 ▼0.44 |
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
- 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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Obenland_Wp_Plugins_V4' not found in wp-content/plugins/wp-approve-user/class-obenland-wp-approve-user.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-approve-user/wp-approve-user.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-approve-user/noop.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-approve-user/uninstall.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Error message when user is not yet approved.), #2 (Row action when user is approved), #3 (Row action when user is not yet approved), #4 (Count notification and row highlight for unapproved users)
wp-approve-user/wp-approve-user.php 92% from 13 tests
The principal PHP file in "WP Approve User" v. 10... is loaded by WordPress automatically on each request
It is important to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "10...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,580 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 187 | 610 | 763 |
PO File | 7 | 253 | 490 | 752 |
CSS | 2 | 1 | 0 | 57 |
JavaScript | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 39.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 36 | 78.26% |
▷ Protected methods | 9 | 19.57% |
▷ Private methods | 1 | 2.17% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter.png | 0.29KB | 0.28KB | ▼ 5.37% |
screenshot-2.png | 10.42KB | 2.51KB | ▼ 75.93% |
screenshot-3.png | 10.24KB | 2.43KB | ▼ 76.25% |
screenshot-4.png | 31.43KB | 10.15KB | ▼ 67.70% |
screenshot-1.png | 32.05KB | 9.48KB | ▼ 70.43% |