83% section-separator

Code Review | Section Separator block - Separate the section beautifully.

WordPress plugin Section Separator block - Separate the section beautifully. scored83%from 54 tests.

About plugin

  • Plugin page: section-separator
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 2, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 19
  • Update frequency: every 32.0 days
  • Top authors: charlescormier (89.47%)abuhayat (15.79%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /984 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.38ms] Passed 4 tests

A check of server-side resources used by Section Separator block - Separate the section beautifully.
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.70 ▼6.18
Dashboard /wp-admin3.33 ▼0.0145.49 ▼14.17
Posts /wp-admin/edit.php3.38 ▲0.0348.05 ▲2.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.49 ▼11.34
Media Library /wp-admin/upload.php3.25 ▲0.0232.94 ▼1.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Section Separator block - Separate the section beautifully.
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13416.06 ▲1.6942.81 ▲41.0340.66 ▼3.46
Dashboard /wp-admin2,206 ▲184.85 ▼1.05108.57 ▲5.1140.25 ▼0.21
Posts /wp-admin/edit.php2,089 ▼01.97 ▲0.0140.04 ▲2.0735.12 ▲4.81
Add New Post /wp-admin/post-new.php6,362 ▲4,83424.46 ▲6.23862.63 ▲226.6735.54 ▼25.84
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0695.82 ▼2.9542.61 ▼1.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant SEP_PLUGIN_VERSION - assumed 'SEP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/section-separator/dist/script.asset.php on line 4
    • > PHP Warning
      Use of undefined constant SEP_PLUGIN_VERSION - assumed 'SEP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/section-separator/dist/editor.asset.php on line 4

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)
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Requires at least: Invalid version format
You can look at the official readme.txt

section-separator/plugin.php 85% from 13 tests

The primary PHP file in "Section Separator block - Separate the section beautifully." version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("section-separator.php" instead of "plugin.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
No dangerous file extensions were detected199 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON20079
PO File1285274
PHP4111441
JavaScript3023
CSS2022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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
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%
Constants2
▷ Global constants2100.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