83% service-showcase

Code Review | Service Showcase

WordPress plugin Service Showcase scored83%from 54 tests.

About plugin

  • Plugin page: service-showcase
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Mar 31, 2020
  • Latest release: Nov 3, 2023
  • Number of updates: 22
  • Update frequency: every 59.6 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /7,934 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.44ms] Passed 4 tests

Server-side resources used by Service Showcase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.28 ▼2.78
Dashboard /wp-admin3.45 ▲0.1147.55 ▼14.71
Posts /wp-admin/edit.php3.57 ▲0.2146.48 ▲1.30
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.52 ▼1.55
Media Library /wp-admin/upload.php3.38 ▲0.1533.75 ▲2.86
All Service Showcase /wp-admin/edit.php?post_type=service_showcase3.4235.28
Add New /wp-admin/post-new.php?post_type=service_showcase3.9541.65

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics 75% from 4 tests

An overview of browser requirements for Service Showcase
Having an awesome user experience is important, so please improve the following
  • Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 26,288 on /wp-admin/post-new.php?post_type=service_showcase)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5214.27 ▼0.441.75 ▲0.1142.06 ▼2.50
Dashboard /wp-admin2,219 ▲395.62 ▼0.0584.77 ▼4.8836.99 ▼2.08
Posts /wp-admin/edit.php2,124 ▲211.97 ▼0.0437.17 ▲2.5235.04 ▼0.58
Add New Post /wp-admin/post-new.php1,546 ▲2023.24 ▲0.21609.13 ▼47.6449.28 ▼0.65
Media Library /wp-admin/upload.php1,418 ▲154.16 ▼0.1695.33 ▼3.9240.71 ▼3.88
All Service Showcase /wp-admin/edit.php?post_type=service_showcase1,1121.9330.4729.31
Add New /wp-admin/post-new.php?post_type=service_showcase26,2888.63487.92150.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=service_showcase
    • > Network (severe)
    wp-content/plugins/service-showcase/assets/images/style1.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: service page, icon box, wordpress service box, service plugin, service box...

service-showcase/service-showcase.php 92% from 13 tests

The principal PHP file in "Service Showcase" v. 2.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin34,889 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS151,2314814,810
SVG3009,546
JavaScript98932596,594
PHP18281633,715
PO File1100172224

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 116)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.25
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity9.06
▷ Minimum method complexity1.00
▷ Maximum method complexity116.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods17
▷ Static methods1588.24%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/style5.png28.62KB13.00KB▼ 54.58%
assets/images/style4.png30.46KB13.56KB▼ 55.49%
assets/images/style1.PNG30.15KB13.26KB▼ 56.02%
assets/images/logo.png107.50KB34.96KB▼ 67.48%
assets/images/style6.png33.71KB14.56KB▼ 56.80%