84% css-js-query-string-remover

Code Review | CSS JS Query String Remover

WordPress plugin CSS JS Query String Remover scored 84% from 54 tests.

About plugin

  • Plugin page: css-js-query-stri...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 1, 2018
  • Latest release: Jun 20, 2019
  • Number of updates: 8
  • Update frequency: every 47.9 days
  • Top authors: kevinhq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,030 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
Install script ran successfully

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

Server-side resources used by CSS JS Query String Remover
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼4.73
Dashboard /wp-admin3.31 ▲0.0143.59 ▼6.44
Posts /wp-admin/edit.php3.36 ▲0.0042.16 ▼5.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.57 ▼0.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.36 ▲1.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CSS JS Query String Remover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.78 ▲0.032.03 ▲0.1543.53 ▼4.95
Dashboard /wp-admin2,209 ▲245.88 ▲0.03100.31 ▼15.5240.27 ▼7.47
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0335.56 ▼4.0036.80 ▼0.24
Add New Post /wp-admin/post-new.php1,542 ▲2818.27 ▲0.64635.31 ▼56.8064.32 ▲6.62
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.0197.50 ▼10.2043.79 ▼2.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/css-js-query-string-remover/css-js-query-string-remover.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

css-js-query-string-remover/css-js-query-string-remover.php Passed 13 tests

The principal PHP file in "CSS JS Query String Remover" v. 1.1 is loaded by WordPress automatically on each request
75 characters long description:
Fix WordPress performance issue: Remove query strings from static resources

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18259

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin