Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.78ms] Passed 4 tests
This is a short check of server-side resources used by WP bred Examples
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.45 ▲0.68 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.29 ▲0.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.24 ▼3.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.97 ▲3.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.97 ▼0.55 |
WPB Settings /wp-admin/options-general.php?page=wpb-settings | 3.23 | 31.28 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP bred Examples
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.07 | 1.69 ▲0.01 | 42.42 ▼0.60 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼0.97 | 113.77 ▲2.04 | 37.03 ▼5.59 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.03 | 40.11 ▼2.84 | 36.54 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.26 ▲0.03 | 664.85 ▼24.50 | 54.28 ▼5.05 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▲0.04 | 98.28 ▼23.37 | 45.12 ▼3.25 |
WPB Settings /wp-admin/options-general.php?page=wpb-settings | 794 | 2.16 | 25.61 | 27.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpbred-examples/admin/partials/wpbred-examples-admin-settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: comments, spam
wpbred-examples/wpbred-examples.php Passed 13 tests
"WP bred Examples" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
This plugin contains examples of the custom functions that can be added in a WordPress Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin406 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 60 | 60 | 215 |
PHP | 7 | 84 | 298 | 180 |
Markdown | 1 | 8 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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