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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.00ms] Passed 4 tests
Server-side resources used by Boilerplate Statement Register
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.52 ▲1.66 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.42 ▼9.62 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.07 ▼2.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.30 ▼15.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.46 ▼4.44 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Boilerplate Statement Register: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.01 ▼0.67 | 1.89 ▼0.21 | 46.02 ▲1.90 |
Dashboard /wp-admin | 2,233 ▲27 | 5.78 ▼0.12 | 118.98 ▲2.47 | 41.37 ▼0.57 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.45 ▲0.41 | 48.12 ▲9.21 | 37.60 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.53 ▲6.04 | 719.62 ▲57.36 | 39.63 ▼10.39 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.99 ▲0.75 | 104.66 ▼0.54 | 41.87 ▼6.47 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boilerplate-statement-register/boilerplate_statement_register.php:31
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Clicking this button, open the main windows.), #2 (Boilerplate statements list is drawing), #3 (Clicking a statement,it is written to the html editor.), #4 (Clicking a trash on a statement, it is deleted.), #5 (Create a new statement. Writing a statement in the textbox, and Clicking the button that is set under the textbox.), #6 (Create a new statement. Selecting a statement in html editor and Open the main window .), #7 (Since a selected statement is copied to the textbox, click the botton for regist.)
boilerplate-statement-register/boilerplate_statement_register.php 85% from 13 tests
Analyzing the main PHP file in "Boilerplate Statement Register" version 1.0.0
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("boilerplate-statement-register.php" instead of "boilerplate_statement_register.php")
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 detected355 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 48 | 49 | 209 |
CSS | 1 | 12 | 5 | 87 |
PHP | 1 | 23 | 34 | 59 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.61MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/open-in-browser-48.png | 3.69KB | 2.33KB | ▼ 36.76% |
screenshot-6.png | 59.77KB | 32.92KB | ▼ 44.92% |
images/trash-off.png | 0.49KB | 0.64KB | 0.00% |
images/trash-on.png | 0.27KB | 0.27KB | 0.00% |
images/trash.png | 0.27KB | 0.27KB | 0.00% |