84% css-url-argument

Code Review | CSS Url Argument

WordPress plugin CSS Url Argument scored84%from 54 tests.

About plugin

  • Plugin page: css-url-argument
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 9, 2018
  • Latest release: Sep 9, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: cema (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /528 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.52ms] Passed 4 tests

Analyzing server-side resources used by CSS Url Argument
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.44 ▼0.18
Dashboard /wp-admin3.32 ▼0.0248.10 ▼17.09
Posts /wp-admin/edit.php3.37 ▲0.0153.14 ▲1.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.29 ▼14.26
Media Library /wp-admin/upload.php3.24 ▲0.0238.39 ▼2.53
How To /wp-admin/admin.php?page=cssusp_sub_page3.2133.03
CSS Url Argument /wp-admin/admin.php?page=cssusp3.2133.73

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CSS Url Argument
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲5514.37 ▲0.022.15 ▲0.0443.57 ▼0.63
Dashboard /wp-admin2,215 ▲355.56 ▼0.0982.06 ▼6.5337.78 ▼1.75
Posts /wp-admin/edit.php2,123 ▲232.03 ▲0.0937.90 ▼2.7741.38 ▲3.85
Add New Post /wp-admin/post-new.php1,550 ▲2223.25 ▲0.07675.23 ▲3.8745.86 ▼6.42
Media Library /wp-admin/upload.php1,420 ▲204.19 ▲0.0795.91 ▼27.4443.65 ▼4.92
How To /wp-admin/admin.php?page=cssusp_sub_page8491.9923.3225.87
CSS Url Argument /wp-admin/admin.php?page=cssusp8501.9922.5128.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, 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 shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/css-url-argument/CSS_url_Argument.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: custom, argument, css, url, parameter

css-url-argument/CSS_url_Argument.php 92% from 13 tests

The principal PHP file in "CSS Url Argument" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("css-url-argument.php" instead of "CSS_url_Argument.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected122 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP192195
JavaScript172215
CSS261612

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.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