90% custom-css

Code Review | Custom CSS, JS & PHP

WordPress plugin Custom CSS, JS & PHP scored90%from 54 tests.

About plugin

  • Plugin page: custom-css
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Dec 9, 2022
  • Number of updates: 22
  • Update frequency: every 249.6 days
  • Top authors: algoritmika (95.45%)wpcodefactory (9.09%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Custom CSS, JS & PHP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.43 ▼6.45
Dashboard /wp-admin3.33 ▲0.0246.46 ▼2.91
Posts /wp-admin/edit.php3.44 ▲0.0848.93 ▼2.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.92 ▼5.42
Media Library /wp-admin/upload.php3.25 ▲0.0235.36 ▼0.36
Custom PHP /wp-admin/tools.php?page=alg-custom-php3.2235.27
Custom JS /wp-admin/tools.php?page=alg-custom-js3.2135.18
Custom CSS /wp-admin/tools.php?page=alg-custom-css3.2132.46

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 21 new options
New WordPress options
alg_custom_css_front_end_css_position
alg_custom_css_version
alg_custom_css_back_end_css
alg_custom_css_back_end_js
db_upgraded
alg_custom_css_back_end_js_position
can_compress_scripts
alg_custom_css_front_end_js
widget_recent-posts
alg_custom_css_php_enabled
...

Browser metrics Passed 4 tests

Checking browser requirements for Custom CSS, JS & PHP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.33 ▼0.072.37 ▲0.4139.14 ▼3.28
Dashboard /wp-admin2,210 ▲335.61 ▲0.0489.61 ▼6.8843.94 ▲1.53
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0439.43 ▼1.5934.53 ▼2.58
Add New Post /wp-admin/post-new.php1,535 ▲923.58 ▲0.55596.01 ▼69.3854.71 ▲1.98
Media Library /wp-admin/upload.php1,415 ▲154.20 ▼0.0295.36 ▼7.2643.96 ▲0.73
Custom PHP /wp-admin/tools.php?page=alg-custom-php8421.9925.3261.27
Custom JS /wp-admin/tools.php?page=alg-custom-js8861.9922.2629.36
Custom CSS /wp-admin/tools.php?page=alg-custom-css8861.9923.9438.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 21 options in the database
    • alg_custom_css_front_end_css_position
    • alg_custom_css_version
    • alg_custom_css_back_end_js_position
    • alg_custom_css_front_end_css_enabled
    • alg_custom_css_back_end_css
    • alg_custom_css_php
    • can_compress_scripts
    • alg_custom_css_back_end_js
    • alg_custom_css_front_end_js_position
    • theysaidso_admin_options
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: custom javascript, php, js, javascript, custom css...

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

This is the main PHP file of "Custom CSS, JS & PHP" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Just another custom CSS, JavaScript & PHP tool for 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
There were no executable files found in this plugin485 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP454243485

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity24.33
▷ Minimum class complexity11.00
▷ Maximum class complexity45.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
No PNG files were detected