84% service-boxs

Code Review | Service Box

WordPress plugin Service Box scored84%from 54 tests.

About plugin

  • Plugin page: service-boxs
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: May 22, 2023
  • Number of updates: 23
  • Update frequency: every 99.6 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /22,005 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3441.46 ▲5.78
Dashboard /wp-admin3.63 ▲0.3346.89 ▼2.97
Posts /wp-admin/edit.php3.68 ▲0.3348.14 ▲0.02
Add New Post /wp-admin/post-new.php6.22 ▲0.3488.02 ▼10.66
Media Library /wp-admin/upload.php3.56 ▲0.3336.38 ▲2.27
Service Group /wp-admin/edit-tags.php?taxonomy=rsbboxcat&post_type=tpwp_serviceboxs3.5534.89
Add Service /wp-admin/post-new.php?post_type=tpwp_serviceboxs3.6452.58
All Shortcodes /wp-admin/edit.php?post_type=generateservices3.6037.06
All Services /wp-admin/edit.php?post_type=tpwp_serviceboxs3.5634.05
Generate Shortcode /wp-admin/post-new.php?post_type=generateservices3.6050.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲14313.87 ▼0.398.25 ▲6.4538.39 ▼4.24
Dashboard /wp-admin2,246 ▲655.83 ▲0.1287.70 ▼12.8639.50 ▼4.04
Posts /wp-admin/edit.php2,153 ▲562.25 ▲0.2835.34 ▼6.3231.97 ▼8.72
Add New Post /wp-admin/post-new.php1,565 ▲3023.24 ▲4.88684.71 ▲27.8354.54 ▼8.88
Media Library /wp-admin/upload.php1,442 ▲424.42 ▲0.2399.19 ▲5.3043.80 ▲0.88
Service Group /wp-admin/edit-tags.php?taxonomy=rsbboxcat&post_type=tpwp_serviceboxs1,3332.1431.5027.55
Add Service /wp-admin/post-new.php?post_type=tpwp_serviceboxs7,4345.20165.4838.83
All Shortcodes /wp-admin/edit.php?post_type=generateservices1,1462.2434.2430.02
All Services /wp-admin/edit.php?post_type=tpwp_serviceboxs5,8742.2368.9327.59
Generate Shortcode /wp-admin/post-new.php?post_type=generateservices4,4943.44121.1033.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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP12203972,334
CSS5322113
JavaScript3105

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 code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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