Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲7.50MB] [CPU: ▲36.98ms] 50% from 4 tests
This is a short check of server-side resources used by HoweScape ScoutBookLabelPrint
Please take the time to fix the following items
- RAM: Total memory usage must be kept under 10MB (currently 11.22MB on /wp-admin/options-general.php?page=hs_ScoutBookLabelPrint_settings)
- Extra RAM: The extra memory usage should kept under 5MB (currently 7.50MB on /wp-admin/options-general.php?page=hs_ScoutBookLabelPrint_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.20 ▲7.74 | 80.22 ▲38.38 |
Dashboard /wp-admin | 11.22 ▲7.87 | 88.55 ▲28.60 |
Posts /wp-admin/edit.php | 11.22 ▲7.86 | 94.24 ▲51.40 |
Add New Post /wp-admin/post-new.php | 12.42 ▲6.54 | 130.73 ▲41.78 |
Media Library /wp-admin/upload.php | 11.22 ▲7.99 | 73.22 ▲39.14 |
HoweScape ScoutBook Label Print /wp-admin/options-general.php?page=hs_ScoutBookLabelPrint_settings | 11.22 | 75.11 |
Server storage [IO: ▲54.97MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The filesystem usage should be lower than 25MB (currently using 54.97MB)
Filesystem: 765 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
HoweScape_SBLP_MBRank_XML |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
HoweScape_SBLP_ShowBox |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for HoweScape ScoutBookLabelPrint
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲34 | 14.27 ▲0.02 | 1.45 ▼0.37 | 36.37 ▼7.90 |
Dashboard /wp-admin | 2,208 ▲33 | 5.65 ▲0.05 | 95.10 ▼19.94 | 33.11 ▼12.45 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.00 ▲0.06 | 40.75 ▲0.51 | 30.63 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 20.84 ▼2.24 | 676.78 ▲18.81 | 52.84 ▼9.80 |
Media Library /wp-admin/upload.php | 1,410 ▲16 | 4.14 ▼0.04 | 96.97 ▲0.17 | 39.98 ▼2.96 |
HoweScape ScoutBook Label Print /wp-admin/options-general.php?page=hs_ScoutBookLabelPrint_settings | 879 | 2.01 | 25.54 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- HoweScape_SBLP_ShowBox
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- HoweScape_SBLP_MBRank_XML
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/howescape-scout-book-label-print/fpdf_merge/ex.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/howescape-scout-book-label-print/hs_ScoutBookLabelPrint.php:14
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in howescape-scout-book-label-print/assets to your readme.txt
howescape-scout-book-label-print/hs_ScoutBookLabelPrint.php 77% from 13 tests
Analyzing the main PHP file in "HoweScape ScoutBookLabelPrint" version 1.5.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("howescape-scout-book-label-print.php" instead of "hs_ScoutBookLabelPrint.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin76,510 lines of code in 256 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 2,020 | 13,001 | 53,178 |
SVG | 135 | 219 | 138 | 20,782 |
XML | 5 | 170 | 283 | 2,239 |
CSS | 3 | 13 | 25 | 191 |
PO File | 1 | 35 | 35 | 88 |
HTML | 1 | 0 | 0 | 23 |
JavaScript | 1 | 1 | 5 | 9 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,379)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 400.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,379.00 |
Average method complexity | 9.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 899 | |
▷ Static methods | 110 | 12.24% |
▷ Public methods | 547 | 60.85% |
▷ Protected methods | 314 | 34.93% |
▷ Private methods | 38 | 4.23% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 318 | |
▷ Global constants | 316 | 99.37% |
▷ Class constants | 2 | 0.63% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
141 PNG files occupy 6.01MB with 1.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Cubscouts/92_100.png | 5.78KB | 5.47KB | ▼ 5.34% |
images/Cubscouts/46_100.png | 1.67KB | 1.49KB | ▼ 11.00% |
images/Cubscouts/77_100.png | 4.37KB | 4.18KB | ▼ 4.47% |
images/Cubscouts/78_100.png | 4.95KB | 4.65KB | ▼ 6.00% |
images/Cubscouts/NationalSumertimePackAward-Bear.png | 55.45KB | 19.70KB | ▼ 64.47% |