83% service-box

Code Review | Service Box Showcase

WordPress plugin Service Box Showcase scored83%from 54 tests.

About plugin

  • Plugin page: service-box
  • Plugin version: 1.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2016
  • Latest release: Nov 10, 2023
  • Number of updates: 54
  • Update frequency: every 46.7 days
  • Top authors: wpshopmart (100%)

Code review

54 tests

User reviews

91 reviews

Install metrics

5,000+ active /156,999 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.18 ▼3.25
Dashboard /wp-admin3.35 ▲0.0144.86 ▼16.72
Posts /wp-admin/edit.php3.41 ▲0.0542.84 ▼4.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.80 ▼1.47
Media Library /wp-admin/upload.php3.28 ▲0.0533.02 ▼1.86
Free Vs Pro /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_fvp_page3.3231.60
More Free Plugins /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_recom_page3.59528.07
Add New Service Box /wp-admin/post-new.php?post_type=wpsm_servicebox_r3.5448.12
All Service Box /wp-admin/edit.php?post_type=wpsm_servicebox_r3.3248.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲13813.77 ▼0.258.90 ▲6.9234.84 ▼9.85
Dashboard /wp-admin2,227 ▲465.63 ▼0.0588.10 ▼18.7339.01 ▼1.89
Posts /wp-admin/edit.php2,132 ▲322.00 ▼0.0236.61 ▼4.1134.72 ▼0.15
Add New Post /wp-admin/post-new.php1,566 ▲3925.10 ▲2.08645.53 ▲3.5849.33 ▼2.95
Media Library /wp-admin/upload.php1,432 ▲384.22 ▲0.0094.68 ▼0.7939.73 ▼2.49
Free Vs Pro /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_fvp_page1,1241.9923.1638.22
More Free Plugins /wp-admin/edit.php?post_type=wpsm_servicebox_r&page=wpsm_servicebox_recom_page1,6942.0625.8234.51
Add New Service Box /wp-admin/post-new.php?post_type=wpsm_servicebox_r7,69315.96539.72256.78
All Service Box /wp-admin/edit.php?post_type=wpsm_servicebox_r1,1042.0531.7130.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS156191815,723
JavaScript81,1485804,849
PHP212901002,690
SVG1002,671
Sass1434341,768
LESS1434441,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 code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_f9bd01_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-bg_glass_75_d0e5f5_1x400.png0.33KB0.16KB▼ 52.38%
assets/images/youtube.png122.11KB69.21KB▼ 43.32%
assets/images/banner.png221.27KB64.86KB▼ 70.69%
assets/css/images/ui-icons_469bdd_256x240.png4.44KB4.17KB▼ 6.02%