Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.32MB] [CPU: ▼12.89ms] Passed 4 tests
Server-side resources used by WP Peon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 30.13 ▼11.31 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.27 ▲1.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.06 ▲0.36 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.27 | 43.86 ▼41.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.45 ▲0.65 |
Execute PHP /wp-admin/admin.php?page=wp-peon-execute | 3.26 | 35.94 |
WP Explorer /wp-admin/admin.php?page=wp-peon-explorer | 3.24 | 30.34 |
Custom HTML /wp-admin/admin.php?page=wp-peon-custom-html | 3.23 | 30.72 |
WP Peon /wp-admin/tools.php?page=wp-peon | 3.22 | 30.30 |
Advance /wp-admin/admin.php?page=wp-peon-advance | 3.23 | 30.86 |
Server storage [IO: ▲0.07MB] [DB: ▲0.71MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Peon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.58 ▼0.80 | 5.61 ▲3.20 | 42.94 ▼4.20 |
Dashboard /wp-admin | 2,217 ▲65 | 5.90 ▲0.20 | 100.04 ▼8.06 | 43.44 ▲1.27 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.13 ▲0.09 | 35.65 ▲2.35 | 32.91 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,521 ▼14 | 23.36 ▲0.16 | 653.73 ▼6.68 | 51.49 ▼4.84 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.18 ▼0.06 | 97.74 ▼15.00 | 40.76 ▼8.17 |
Execute PHP /wp-admin/admin.php?page=wp-peon-execute | 933 | 2.05 | 24.69 | 24.61 |
WP Explorer /wp-admin/admin.php?page=wp-peon-explorer | 1,200 | 2.05 | 22.48 | 26.11 |
Custom HTML /wp-admin/admin.php?page=wp-peon-custom-html | 987 | 2.06 | 23.76 | 27.31 |
WP Peon /wp-admin/tools.php?page=wp-peon | 819 | 2.02 | 24.24 | 27.45 |
Advance /wp-admin/admin.php?page=wp-peon-advance | 880 | 2.02 | 22.90 | 25.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.71MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wp-peon-explorer
- > Warning in wp-content/plugins/wp-peon/admin/partials/wp-peon-explorer.php+17
Use of undefined constant _ABSPATH - assumed '_ABSPATH' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=wp-peon-explorer
- > Notice in wp-content/plugins/wp-peon/admin/partials/wp-peon-explorer.php+87
Undefined index: path
- > GET request to /wp-admin/admin.php?page=wp-peon-custom-html
- > Notice in wp-content/plugins/wp-peon/admin/partials/wp-peon-custom-html.php+75
Undefined index: header
- > GET request to /wp-admin/admin.php?page=wp-peon-custom-html
- > Notice in wp-content/plugins/wp-peon/admin/partials/wp-peon-custom-html.php+83
Undefined index: footer
- > GET request to /wp-admin/admin.php?page=wp-peon-custom-html
- > Notice in wp-content/plugins/wp-peon/admin/partials/wp-peon-custom-html.php+91
Undefined index: after_post
- > GET request to /wp-admin/admin.php?page=wp-peon-custom-html
- > Notice in wp-content/plugins/wp-peon/admin/partials/wp-peon-custom-html.php+99
Undefined index: before_post
- > GET request to /wp-admin/admin.php?page=wp-peon-advance
- > Warning in wp-content/plugins/wp-peon/admin/partials/wp-peon-advance.php+72
file_get_contents(wp-content/debug.log): failed to open stream: No such file or directory
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-peon/public/partials/wp-peon-public-display.php
- > /wp-content/plugins/wp-peon/admin/partials/wp-peon-admin-display.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: page in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php on line 17
- > PHP Notice
Undefined index: page in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php on line 17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php:17
- > PHP Notice
Undefined index: page in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php on line 17
- > PHP Notice
Undefined index: page in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php on line 17
- > PHP Notice
Undefined index: page in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php on line 17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php:17
- > PHP Notice
Undefined index: page in wp-content/plugins/wp-peon/admin/partials/wp-peon-header.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: editor, explorer, wp-config, execute, htaccess...
wp-peon/wp-peon.php 92% from 13 tests
The primary PHP file in "WP Peon" version v1.0.0... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "v1.0.0...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin844 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 250 | 577 | 838 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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 code | 0.21 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin