90% icon-separator

Code Review | Icon Separator

WordPress plugin Icon Separator scored90%from 54 tests.

About plugin

  • Plugin page: icon-separator
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Sep 23, 2023
  • Number of updates: 31
  • Update frequency: every 17.0 days
  • Top authors: Mr2P (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /7,088 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.02MB] [CPU: ▼3.75ms] Passed 4 tests

An overview of server-side resources used by Icon Separator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.74 ▲1.93
Dashboard /wp-admin3.34 ▼0.0149.06 ▼14.39
Posts /wp-admin/edit.php3.39 ▲0.0351.38 ▼2.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.97 ▼0.11
Media Library /wp-admin/upload.php3.26 ▲0.0335.89 ▲3.18

Server storage [IO: ▲3.06MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Icon Separator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.22 ▼0.361.81 ▲0.1540.72 ▼1.57
Dashboard /wp-admin2,195 ▲185.56 ▼0.0991.49 ▼4.2639.90 ▼0.25
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0240.27 ▲0.5636.68 ▼2.43
Add New Post /wp-admin/post-new.php1,697 ▲16022.46 ▲4.20635.61 ▼25.4256.43 ▼0.95
Media Library /wp-admin/upload.php1,394 ▼64.33 ▲0.1296.10 ▼8.4941.90 ▼4.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: separator, block, svg, divider, gutenberg...

icon-separator/icon-separator.php 92% from 13 tests

"Icon Separator" version 1.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0.0" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected47,378 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON30047,138
JavaScript15094161
PHP3258378
CSS1001

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.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
PNG images were not found in this plugin