Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Compile error in wp-content/plugins/my-client-builder/index.php+122
Cannot use "self" when no class scope is active
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.17ms] Passed 4 tests
A check of server-side resources used by Name: My Client Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.95 ▼4.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.68 ▼5.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.21 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.15 ▼8.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.10 ▼6.10 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Name: My Client Builder: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.17 | 1.58 ▼0.13 | 38.91 ▼7.78 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼1.21 | 100.80 ▼4.32 | 39.59 ▼4.47 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▲0.07 | 39.00 ▲0.24 | 34.07 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.48 ▼4.75 | 620.35 ▼50.82 | 48.08 ▼10.15 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▼0.05 | 94.86 ▼10.92 | 45.12 ▼0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/my-client-builder/popup.php:22
- > PHP Fatal error
Cannot use "self" when no class scope is active in wp-content/plugins/my-client-builder/index.php on line 122
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Name: My Client Builder===
)
my-client-builder/index.php 85% from 13 tests
"Name: My Client Builder" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-client-builder.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin819 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 8 | 39 | 479 |
PHP | 2 | 11 | 13 | 317 |
JavaScript | 3 | 9 | 14 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
template/img/arrow_right.png | 8.78KB | 1.40KB | ▼ 84.10% |
template/img/arrow_left.png | 8.87KB | 1.43KB | ▼ 83.90% |
colorbox/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
images/logo.png | 22.28KB | 11.05KB | ▼ 50.41% |
colorbox/images/overlay.png | 0.11KB | 0.15KB | 0.00% |