78% icustomizer

Code Review | ICustomizer

WordPress plugin ICustomizer scored78%from 54 tests.

About plugin

  • Plugin page: icustomizer
  • Plugin version: 1.6.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Jul 10, 2017
  • Latest release: Nov 8, 2023
  • Number of updates: 147
  • Update frequency: every 15.8 days
  • Top authors: informatux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.51MB] [CPU: ▲9.80ms] Passed 4 tests

A check of server-side resources used by ICustomizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5048.37 ▲7.72
Dashboard /wp-admin3.89 ▲0.5467.35 ▲6.46
Posts /wp-admin/edit.php3.94 ▲0.5857.51 ▲8.82
Add New Post /wp-admin/post-new.php6.41 ▲0.52104.25 ▲18.74
Media Library /wp-admin/upload.php3.73 ▲0.5049.61 ▲16.18
Credits /wp-admin/admin.php?page=icustomizer-credits3.7348.45
Dashboard Options /wp-admin/admin.php?page=icustomizer-dashboard3.7849.16
Custom CSS Site /wp-admin/admin.php?page=icustomizer-customcsssite3.7359.17
Custom CSS Backend /wp-admin/admin.php?page=icustomizer-customcssbackend3.7348.57
General Options /wp-admin/admin.php?page=icustomizer-general3.7448.77
Editor Options /wp-admin/admin.php?page=icustomizer-editor3.7347.63
ICUSTOMIZER /wp-admin/admin.php?page=icustomizer3.7447.77
Custom JS Options /wp-admin/admin.php?page=icustomizer-customjs3.7348.03
Security Options /wp-admin/admin.php?page=icustomizer-security3.7347.45
Login Options /wp-admin/admin.php?page=icustomizer-login3.7344.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 385 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ICustomizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,995 ▲24814.43 ▲0.111.93 ▲0.3039.85 ▼3.39
Dashboard /wp-admin2,395 ▲2186.18 ▲0.52108.04 ▲17.5834.31 ▼8.56
Posts /wp-admin/edit.php2,322 ▲2223.38 ▲1.4447.07 ▼0.2427.74 ▼8.91
Add New Post /wp-admin/post-new.php1,579 ▲5325.18 ▲2.05589.89 ▼102.9242.94 ▼23.02
Media Library /wp-admin/upload.php1,462 ▲594.09 ▼0.1283.41 ▼23.2341.27 ▼5.18
Credits /wp-admin/admin.php?page=icustomizer-credits1,2263.1341.7599.94
Dashboard Options /wp-admin/admin.php?page=icustomizer-dashboard2,0708.96174.3869.55
Custom CSS Site /wp-admin/admin.php?page=icustomizer-customcsssite1,1594.2768.2865.55
Custom CSS Backend /wp-admin/admin.php?page=icustomizer-customcssbackend1,1544.2765.2145.13
General Options /wp-admin/admin.php?page=icustomizer-general1,3263.6946.0733.48
Editor Options /wp-admin/admin.php?page=icustomizer-editor1,1793.8343.5570.54
ICUSTOMIZER /wp-admin/admin.php?page=icustomizer1,3263.8349.3339.05
Custom JS Options /wp-admin/admin.php?page=icustomizer-customjs1,1664.4467.5247.35
Security Options /wp-admin/admin.php?page=icustomizer-security1,1272.9641.7027.75
Login Options /wp-admin/admin.php?page=icustomizer-login1,9635.1664.4537.52

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
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Please take a closer look at the following
  • 17× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/icustomizer/icustomizer-functions.php
    • > /wp-content/plugins/icustomizer/core/assets/skeletons/skeleton.php
    • > /wp-content/plugins/icustomizer/includes/icustomizer-login.php
    • > /wp-content/plugins/icustomizer/includes/icustomizer-customjs.php
    • > /wp-content/plugins/icustomizer/core/framework.php
    • > /wp-content/plugins/icustomizer/icustomizer-menu.php
    • > /wp-content/plugins/icustomizer/includes/icustomizer-security.php
    • > /wp-content/plugins/icustomizer/includes/icustomizer-customcsssite.php
    • > /wp-content/plugins/icustomizer/core/usage/framework-examples.php
    • > /wp-content/plugins/icustomizer/icustomizer-style.php
  • 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: framework in wp-content/plugins/icustomizer/core/assets/skeletons/addTime.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function addNote() on null in wp-content/plugins/icustomizer/core/assets/skeletons/addNote.php:3
    • > PHP Notice
      Undefined variable: framework in wp-content/plugins/icustomizer/core/assets/skeletons/addEditor.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function addInput() on null in wp-content/plugins/icustomizer/core/assets/skeletons/addSubmitButton.php:3
    • > PHP Notice
      Undefined variable: framework in wp-content/plugins/icustomizer/core/assets/skeletons/addEnabledDisabled.php on line 3
    • > PHP Notice
      Undefined variable: framework in wp-content/plugins/icustomizer/core/assets/skeletons/addNote.php on line 3
    • > PHP Notice
      Undefined variable: framework in wp-content/plugins/icustomizer/core/assets/skeletons/addColor.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function openSelect() on null in wp-content/plugins/icustomizer/core/assets/skeletons/addSelect.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function addColor() on null in wp-content/plugins/icustomizer/core/assets/skeletons/addColor.php:3
    • > PHP Notice
      Undefined variable: framework in wp-content/plugins/icustomizer/core/assets/skeletons/addInput.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: dashboard, login, admin, security, custom css...

icustomizer/icustomizer.php Passed 13 tests

The main PHP file in "ICustomizer" ver. 1.6.4 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Sécurité du front et personnalisation de votre administration sous Wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin80,137 lines of code in 261 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19213,90416,05266,646
CSS202272524,117
PHP345201,1973,150
Markdown566012,037
XML22171,955
HTML5287611,644
PO File1221417320
SQL11018263
SVG1015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity202.00
▷ Minimum class complexity202.00
▷ Maximum class complexity202.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods55
▷ Static methods00.00%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions46
▷ Named functions4495.65%
▷ Anonymous functions24.35%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
94 PNG files occupy 1.49MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/js/jquery/colorpicker/images/colorpicker_submit.png0.97KB0.99KB0.00%
core/assets/js/jquery/colorpicker/images/old/colorpicker_background.png1.87KB2.12KB0.00%
core/assets/js/jquery/theme/1.11.4.custom/images/ui-bg_highlight-hard_70_000000_1x100.png0.24KB0.16KB▼ 35.34%
images/icustomizer-wp-editor.png96.52KB32.78KB▼ 66.04%
core/assets/js/jquery/editor/style/jqueryui/ui-lightness/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%