84% custom-css-wp

Code Review | Custom CSS for Wordpress

WordPress plugin Custom CSS for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: custom-css-wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2016
  • Latest release: Oct 23, 2016
  • Number of updates: 12
  • Update frequency: every 15.0 days
  • Top authors: chetan200891 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,139 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Custom CSS for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.83 ▼4.29
Dashboard /wp-admin3.33 ▲0.0246.79 ▼1.97
Posts /wp-admin/edit.php3.38 ▲0.0244.42 ▼4.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.24 ▼2.72
Media Library /wp-admin/upload.php3.25 ▲0.0235.58 ▲1.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Custom CSS for Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.28 ▼1.301.85 ▼0.0439.40 ▼10.63
Dashboard /wp-admin2,207 ▲225.81 ▲0.9295.28 ▼25.9436.90 ▼8.77
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0435.65 ▼0.0136.99 ▼0.60
Add New Post /wp-admin/post-new.php1,536 ▲2223.35 ▼0.12676.99 ▼17.5363.29 ▲7.29
Media Library /wp-admin/upload.php1,389 ▲74.23 ▲0.0497.67 ▼0.1543.38 ▼1.91
Custom CSS /wp-admin/custom-css-wp.php260.440.0713.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/custom-css-wp.php
    • > Network (severe)
    wp-admin/custom-css-wp.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 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
10 plugin tags: custom jscss, custom, simple css, custom stylesheet, custom css...

custom-css-wp/custom-css-wp.php 92% from 13 tests

This is the main PHP file of "Custom CSS for Wordpress" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected107 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP2243489
JavaScript91018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin