94% wp-service-box

Code Review | Wp Service Box

WordPress plugin Wp Service Box scored 94% from 54 tests.

About plugin

  • Plugin page: wp-service-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Jan 4, 2019
  • Latest release: Mar 22, 2021
  • Number of updates: 8
  • Update frequency: every 101.3 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,124 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.23ms] Passed 4 tests

An overview of server-side resources used by Wp Service Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0434.30 ▼3.42
Dashboard /wp-admin3.09 ▲0.0346.41 ▼0.64
Posts /wp-admin/edit.php3.14 ▲0.0346.02 ▲2.73
Add New Post /wp-admin/post-new.php5.45 ▲0.0188.91 ▼556.40
Media Library /wp-admin/upload.php3.03 ▲0.0332.69 ▼0.45
Service Box /wp-admin/edit.php?post_type=service-box3.0733.21
Add New /wp-admin/post-new.php?post_type=service-box3.1348.60

Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Wp Service Box: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,860 ▲26516.30 ▲0.4914.30 ▲5.5177.67 ▲25.35
Dashboard /wp-admin3,027 ▲935.97 ▲0.04140.48 ▼4.71111.37 ▼1.47
Posts /wp-admin/edit.php2,774 ▲382.83 ▲0.1462.90 ▼4.8486.38 ▼5.27
Add New Post /wp-admin/post-new.php1,706 ▲2318.74 ▲1.94396.29 ▲14.33113.03 ▲2.47
Media Library /wp-admin/upload.php1,848 ▲415.02 ▼0.00162.70 ▼0.77120.24 ▲2.01
Service Box /wp-admin/edit.php?post_type=service-box1,4312.6164.5780.05
Add New /wp-admin/post-new.php?post_type=service-box2,8708.88229.67146.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-service-box/wp-service-box.php:14

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (This is the first screen shot), #2 (This is the second screen shot), #3 (This is the third screen shot), #4 (This is the fourth screen shot), #5 (This is the fifth screen shot)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-service-box === )
The official readme.txt might help

wp-service-box/wp-service-box.php Passed 13 tests

Analyzing the main PHP file in "Wp Service Box" version 1.0
90 characters long description:
Service Box is simple, responsive, lightweight plugin for creating responsive service box.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,168 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG200973
CSS411682
PHP112865
JavaScript20530
HTML20018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin