84% custom-wp-css-js

Code Review | Custom WP CSS & JS

WordPress plugin Custom WP CSS & JS scored84%from 54 tests.

About plugin

  • Plugin page: custom-wp-css-js
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Jul 8, 2023
  • Number of updates: 8
  • Update frequency: every 337.4 days
  • Top authors: coder.sam (87.5%)coder.salman (25%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.34MB] [CPU: ▼11.65ms] Passed 4 tests

Server-side resources used by Custom WP CSS & JS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.77 ▼35.93
Dashboard /wp-admin3.32 ▲0.0250.30 ▼0.80
Posts /wp-admin/edit.php3.37 ▲0.0152.99 ▲7.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.04 ▼10.96
Media Library /wp-admin/upload.php3.25 ▲0.0137.11 ▲1.10

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom WP CSS & JS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.61 ▼0.661.75 ▲0.1744.08 ▼8.14
Dashboard /wp-admin2,210 ▲255.87 ▼0.01116.12 ▼0.9347.06 ▲5.94
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0342.45 ▲4.7237.51 ▼0.31
Add New Post /wp-admin/post-new.php1,536 ▲323.13 ▲0.03669.88 ▲13.5359.52 ▼5.91
Media Library /wp-admin/upload.php1,389 ▲14.20 ▼0.04128.88 ▲23.1350.49 ▲6.26
Custom CSS & JS /wp-admin/custom-wp-css-js.php260.440.0916.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/custom-wp-css-js.php
    • > Network (severe)
    wp-admin/custom-wp-css-js.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

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: custom dashboard, custom css, javascript, custom, css...

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

Analyzing the main PHP file in "Custom WP CSS & JS" version 1.2.1
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 187 characters long)

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
There were no executable files found in this plugin9,317 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript69819958,822
PHP44287271
Sass1170104
CSS310103
JSON10017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png58.43KB12.50KB▼ 78.60%
assets/screenshot-2.png44.86KB9.79KB▼ 78.17%