67% custom-shape-dividers

Code Review | Custom Shape Dividers create dividers in a easy way

WordPress plugin Custom Shape Dividers create dividers in a easy way scored67%from 54 tests.

About plugin

  • Plugin page: custom-shape-divi...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Nov 26, 2021
  • Latest release: Jun 4, 2022
  • Number of updates: 4
  • Update frequency: every 48.0 days
  • Top authors: vikasratudi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,567 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼17.85ms] Passed 4 tests

Server-side resources used by Custom Shape Dividers create dividers in a easy way
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.65 ▲1.98
Dashboard /wp-admin3.10 ▼0.2128.26 ▼20.83
Posts /wp-admin/edit.php3.24 ▼0.1231.65 ▼16.47
Add New Post /wp-admin/post-new.php5.48 ▼0.4164.83 ▼23.72
Media Library /wp-admin/upload.php3.19 ▼0.0527.06 ▼10.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_customshapebuild
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Custom Shape Dividers create dividers in a easy way: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.73 ▲0.341.66 ▼1.3843.13 ▼4.41
Dashboard /wp-admin2,232 ▲474.89 ▼0.8998.73 ▼16.4635.09 ▼6.39
Posts /wp-admin/edit.php2,112 ▲232.06 ▲0.0234.60 ▼8.4336.16 ▼1.33
Add New Post /wp-admin/post-new.php6,638 ▲5,11527.79 ▲4.601,005.91 ▲336.3076.50 ▲21.19
Media Library /wp-admin/upload.php1,414 ▲294.33 ▲0.1397.86 ▼4.7342.91 ▼2.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_customshapebuild
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/custom-shape-dividers/inc/db.php
    • > /wp-content/plugins/custom-shape-dividers/uninstall.php
    • > /wp-content/plugins/custom-shape-dividers/inc/customshapedividershome.php
    • > /wp-content/plugins/custom-shape-dividers/customshapedividers.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-shape-dividers/inc/metaboxes.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

custom-shape-dividers/customshapedividers.php 77% from 13 tests

This is the main PHP file of "Custom Shape Dividers create dividers in a easy way" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-shape-dividers.php" instead of "customshapedividers.php")
  • Description: The description should be shorter than 140 characters (currently 167 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin1,143 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS1357535
PHP66728343
JavaScript1432265

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/header.png20.64KB2.99KB▼ 85.51%