Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.64ms] 75% from 4 tests
Analyzing server-side resources used by Service Box Showcase
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 528.07ms on /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_recom_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.18 ▼3.25 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.86 ▼16.72 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.84 ▼4.74 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.80 ▼1.47 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.02 ▼1.86 |
Free Vs Pro /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_fvp_page | 3.32 | 31.60 |
More Free Plugins /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_recom_page | 3.59 | 528.07 |
Add New Service Box /wp-admin/post-new.php?post_type=wpsm_servicebox_r | 3.54 | 48.12 |
All Service Box /wp-admin/edit.php?post_type=wpsm_servicebox_r | 3.32 | 48.78 |
Server storage [IO: ▲3.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 117 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
wpsm_service_b_review |
servicebox_default_Settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Service Box Showcase
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲138 | 13.77 ▼0.25 | 8.90 ▲6.92 | 34.84 ▼9.85 |
Dashboard /wp-admin | 2,227 ▲46 | 5.63 ▼0.05 | 88.10 ▼18.73 | 39.01 ▼1.89 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.00 ▼0.02 | 36.61 ▼4.11 | 34.72 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,566 ▲39 | 25.10 ▲2.08 | 645.53 ▲3.58 | 49.33 ▼2.95 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.22 ▲0.00 | 94.68 ▼0.79 | 39.73 ▼2.49 |
Free Vs Pro /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_fvp_page | 1,124 | 1.99 | 23.16 | 38.22 |
More Free Plugins /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_recom_page | 1,694 | 2.06 | 25.82 | 34.51 |
Add New Service Box /wp-admin/post-new.php?post_type=wpsm_servicebox_r | 7,693 | 15.96 | 539.72 | 256.78 |
All Service Box /wp-admin/edit.php?post_type=wpsm_servicebox_r | 1,104 | 2.05 | 31.71 | 30.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- wpsm_service_b_review
- servicebox_default_Settings
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/service-box/ink/admin/free.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/service-box/ink/admin/fvp.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/service-box/ink/admin/help.php:55
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/service-box/ink/admin/free.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/service-box/ink/admin/more-pro.php:116
- > PHP Warning
include(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/service-box/ink/admin/free.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/service-box/ink/admin/free.php:63
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
service-box/service-box.php Passed 13 tests
"Service Box Showcase" version 1.5.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
Service Box plugin is manage your showcase of your services. Easily add unlimited services box with drag and drop builder Api.
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
There were no executable files found in this plugin19,459 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 619 | 181 | 5,723 |
JavaScript | 8 | 1,148 | 580 | 4,849 |
PHP | 21 | 290 | 100 | 2,690 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 1.52MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_f9bd01_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.33KB | 0.16KB | ▼ 52.38% |
assets/images/youtube.png | 122.11KB | 69.21KB | ▼ 43.32% |
assets/images/banner.png | 221.27KB | 64.86KB | ▼ 70.69% |
assets/css/images/ui-icons_469bdd_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |