84% services-section

Code Review | Services Section block - Showcase services in a professional way.

WordPress plugin Services Section block - Showcase services in a professional way. scored84%from 54 tests.

About plugin

  • Plugin page: services-section
  • Plugin version: 1.3.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 7, 2021
  • Latest release: Oct 3, 2023
  • Number of updates: 74
  • Update frequency: every 10.7 days
  • Top authors: charlescormier (91.89%)abuhayat (9.46%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /10,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.22ms] Passed 4 tests

A check of server-side resources used by Services Section block - Showcase services in a professional way.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.60 ▼5.37
Dashboard /wp-admin3.36 ▲0.0653.17 ▲3.16
Posts /wp-admin/edit.php3.41 ▲0.0648.81 ▲0.64
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.59 ▼10.09
Media Library /wp-admin/upload.php3.28 ▲0.0637.36 ▲1.95

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Services Section block - Showcase services in a professional way.
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.81 ▲0.541.70 ▼0.0943.37 ▼1.94
Dashboard /wp-admin2,209 ▲214.86 ▼0.0599.58 ▼6.9337.96 ▼3.44
Posts /wp-admin/edit.php2,089 ▲182.01 ▼0.0138.71 ▲1.8533.93 ▼2.87
Add New Post /wp-admin/post-new.php6,365 ▲4,82923.50 ▲0.13892.15 ▲238.0355.57 ▲5.71
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.1294.86 ▼2.7844.37 ▲0.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/services-section/inc/block.php:4
    • > PHP Warning
      Use of undefined constant SSB_VERSION - assumed 'SSB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/services-section/dist/editor.asset.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/services-section/inc/child/block.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

services-section/plugin.php 92% from 13 tests

The primary PHP file in "Services Section block - Showcase services in a professional way." version 1.3.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("services-section.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin491 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON300276
PO File160109143
PHP5171367
CSS3063
JavaScript2022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin