89% wp-remove-query-strings-from-static-resources

Code Review | WP Remove Query Strings From Static Resources

WordPress plugin WP Remove Query Strings From Static Resources scored89%from 54 tests.

About plugin

  • Plugin page: wp-remove-query-s...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Sep 23, 2023
  • Number of updates: 14
  • Update frequency: every 162.6 days
  • Top authors: rinkuyadav999 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

5,000+ active /29,230 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by WP Remove Query Strings From Static Resources
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.80 ▲1.49
Dashboard /wp-admin3.32 ▲0.0144.40 ▼1.86
Posts /wp-admin/edit.php3.37 ▲0.0149.12 ▲3.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.50 ▼0.46
Media Library /wp-admin/upload.php3.24 ▲0.0135.97 ▲1.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Remove Query Strings From Static Resources
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼0.981.91 ▲0.0541.86 ▼7.50
Dashboard /wp-admin2,206 ▲185.90 ▲1.03109.86 ▼6.4540.87 ▼4.95
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0341.06 ▲4.6535.65 ▼2.23
Add New Post /wp-admin/post-new.php1,514 ▼517.68 ▼5.43681.85 ▲32.9450.36 ▼12.84
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.11100.92 ▼6.9142.88 ▲0.04

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: strings, pingdom, static, pagespeed, gtmetrix...

wp-remove-query-strings-from-static-resources/wp-remove-query-strings-from-static-resources.php 85% from 13 tests

The primary PHP file in "WP Remove Query Strings From Static Resources" version 1.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2155745

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.32
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin