83% easy-custom-css

Code Review | Easy custom css by webriti

WordPress plugin Easy custom css by webriti scored83%from 54 tests.

About plugin

  • Plugin page: easy-custom-css
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 22, 2013
  • Latest release: Feb 3, 2014
  • Number of updates: 6
  • Update frequency: every 14.0 days
  • Top authors: a.ankit (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,537 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.87ms] Passed 4 tests

This is a short check of server-side resources used by Easy custom css by webriti
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.10 ▼3.73
Dashboard /wp-admin3.33 ▼0.0249.28 ▼12.31
Posts /wp-admin/edit.php3.38 ▲0.0245.54 ▲0.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.06 ▼11.70
Media Library /wp-admin/upload.php3.25 ▲0.0237.99 ▲5.55
Easy custom css /wp-admin/options-general.php?page=easy_custom_css_panels3.2231.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy custom css by webriti
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.15 ▼1.231.80 ▼0.0243.16 ▼0.54
Dashboard /wp-admin2,210 ▲185.85 ▲0.9094.87 ▼28.5137.08 ▼9.99
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0235.91 ▲1.0133.89 ▼3.79
Add New Post /wp-admin/post-new.php1,517 ▼1617.47 ▼5.86686.19 ▲6.7563.68 ▲8.87
Media Library /wp-admin/upload.php1,395 ▲44.25 ▲0.1596.26 ▼3.2646.25 ▲0.38
Easy custom css /wp-admin/options-general.php?page=easy_custom_css_panels1,0302.3333.2031.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× 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/easy-custom-css/inc/options.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-custom-css/easy-custom-css.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-css/inc/easy_options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Create Custom CSS like this.), #2 (Help and support.)
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

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

The main PHP script in "Easy custom css by webriti" version 1.0 is automatically included on every request by WordPress
80 characters long description:
Use this plugin to write your own Custom CSS. No need to modify the Theme files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,258 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35474564,861
CSS22922197
PHP32136141
PO File1253759

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods240.00%
▷ Protected methods360.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png36.56KB17.05KB▼ 53.35%
(invalid) inc/images/css-icon.png0.84KB0.00KB▼ 100.00%
screenshot-1.png31.10KB13.83KB▼ 55.54%