84% wp-customizer-icon

Code Review | Wp Customizer Icon

WordPress plugin Wp Customizer Icon scored84%from 54 tests.

About plugin

  • Plugin page: wp-customizer-icon
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Nov 30, 2022
  • Number of updates: 6
  • Update frequency: every 208.2 days
  • Top authors: iqbalrony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /801 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.00MB] [CPU: ▼8.06ms] Passed 4 tests

This is a short check of server-side resources used by Wp Customizer Icon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.06 ▼3.95
Dashboard /wp-admin3.31 ▲0.0146.95 ▼4.26
Posts /wp-admin/edit.php3.36 ▲0.0048.85 ▼5.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.32 ▼18.32
Media Library /wp-admin/upload.php3.23 ▲0.0038.12 ▲3.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Customizer Icon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.10 ▼0.281.95 ▼0.0739.07 ▼5.13
Dashboard /wp-admin2,192 ▲155.57 ▼0.0288.51 ▼6.7139.19 ▼4.77
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0233.61 ▼8.1335.67 ▲0.08
Add New Post /wp-admin/post-new.php1,554 ▲2818.34 ▲0.70601.03 ▼75.8267.20 ▲8.70
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.0596.81 ▼2.5245.29 ▼0.34

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-customizer-icon/inc/enqueue_scripts.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-customizer-icon/inc/customize_icon_control.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: icon, customizer, customizer icon, customizer icon control

wp-customizer-icon/wp-customizer-icon.php Passed 13 tests

The entry point to "Wp Customizer Icon" version 1.0.3 is a PHP file that has certain tags in its header comment area
51 characters long description:
Wp Customizer Icon plugin only for WordPress theme.

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
Success! There were no dangerous files found in this plugin14,179 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG10011,097
PHP424532,967
Markdown10057
CSS20431
JavaScript14627

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected