Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.84ms] Passed 4 tests
Analyzing server-side resources used by Service Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 41.46 ▲5.78 |
Dashboard /wp-admin | 3.63 ▲0.33 | 46.89 ▼2.97 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 48.14 ▲0.02 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 88.02 ▼10.66 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 36.38 ▲2.27 |
Service Group /wp-admin/edit-tags.php?taxonomy=rsbboxcat&post_type=tpwp_serviceboxs | 3.55 | 34.89 |
Add Service /wp-admin/post-new.php?post_type=tpwp_serviceboxs | 3.64 | 52.58 |
All Shortcodes /wp-admin/edit.php?post_type=generateservices | 3.60 | 37.06 |
All Services /wp-admin/edit.php?post_type=tpwp_serviceboxs | 3.56 | 34.05 |
Generate Shortcode /wp-admin/post-new.php?post_type=generateservices | 3.60 | 50.26 |
Server storage [IO: ▲1.23MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Service Box
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲143 | 13.87 ▼0.39 | 8.25 ▲6.45 | 38.39 ▼4.24 |
Dashboard /wp-admin | 2,246 ▲65 | 5.83 ▲0.12 | 87.70 ▼12.86 | 39.50 ▼4.04 |
Posts /wp-admin/edit.php | 2,153 ▲56 | 2.25 ▲0.28 | 35.34 ▼6.32 | 31.97 ▼8.72 |
Add New Post /wp-admin/post-new.php | 1,565 ▲30 | 23.24 ▲4.88 | 684.71 ▲27.83 | 54.54 ▼8.88 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.42 ▲0.23 | 99.19 ▲5.30 | 43.80 ▲0.88 |
Service Group /wp-admin/edit-tags.php?taxonomy=rsbboxcat&post_type=tpwp_serviceboxs | 1,333 | 2.14 | 31.50 | 27.55 |
Add Service /wp-admin/post-new.php?post_type=tpwp_serviceboxs | 7,434 | 5.20 | 165.48 | 38.83 |
All Shortcodes /wp-admin/edit.php?post_type=generateservices | 1,146 | 2.24 | 34.24 | 30.02 |
All Services /wp-admin/edit.php?post_type=tpwp_serviceboxs | 5,874 | 2.23 | 68.93 | 27.59 |
Generate Shortcode /wp-admin/post-new.php?post_type=generateservices | 4,494 | 3.44 | 121.10 | 33.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=tpwp_serviceboxs
- > Notice in wp-content/plugins/service-boxs/lib/post-type/rsbbox-post-type.php+51
Undefined index: order
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
service-boxs/tp-servicebox.php 92% from 13 tests
The principal PHP file in "Service Box" v. 1.8 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("service-boxs.php" instead of "tp-servicebox.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 detected5,123 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 12 | 203 | 97 | 2,334 |
CSS | 5 | 3 | 22 | 113 |
JavaScript | 3 | 1 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 18 | |
▷ Named functions | 18 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected