84% customizer-custom-css

Code Review | Customizer Custom CSS

WordPress plugin Customizer Custom CSS scored84%from 54 tests.

About plugin

  • Plugin page: customizer-custom...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4-6.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 25, 2023
  • Number of updates: 9
  • Update frequency: every 326.3 days
  • Top authors: bijayyadav (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /13,474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Customizer Custom CSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.06 ▼6.89
Dashboard /wp-admin3.33 ▼0.0155.40 ▼10.99
Posts /wp-admin/edit.php3.39 ▲0.0357.04 ▲8.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.28 ▼23.88
Media Library /wp-admin/upload.php3.26 ▲0.0340.59 ▲0.65

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

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

Browser metrics Passed 4 tests

Customizer Custom CSS: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.28 ▼0.071.64 ▼0.1834.48 ▼8.76
Dashboard /wp-admin2,210 ▲335.56 ▼0.0788.14 ▼3.1839.86 ▼0.86
Posts /wp-admin/edit.php2,121 ▲211.96 ▼0.0639.01 ▲3.1033.20 ▼2.72
Add New Post /wp-admin/post-new.php1,541 ▲1522.92 ▼0.47633.31 ▼34.9151.15 ▼5.41
Media Library /wp-admin/upload.php1,418 ▲214.17 ▲0.0198.99 ▼6.6443.54 ▼3.45

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizer-custom-css/about/about.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: custom css, customizer, style, css

customizer-custom-css/customizer-custom-css.php Passed 13 tests

The main PHP file in "Customizer Custom CSS" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Add Custom CSS from customizer to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin275 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32730151
CSS15098
PO File12219
JavaScript1037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin