84% wp-version-in-query-string-modifier

Code Review | WP Version in Query String Modifier

WordPress plugin WP Version in Query String Modifier scored84%from 54 tests.

About plugin

  • Plugin page: wp-version-in-que...
  • Plugin version: 1.0.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.3-4.5.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Jul 31, 2016
  • Number of updates: 22
  • Update frequency: every 27.0 days
  • Top authors: joesat (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,797 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.02MB] [CPU: ▼5.70ms] Passed 4 tests

Server-side resources used by WP Version in Query String Modifier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.07 ▼1.48
Dashboard /wp-admin3.34 ▼0.0143.73 ▼12.13
Posts /wp-admin/edit.php3.39 ▲0.0346.80 ▲1.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.64 ▼10.94
Media Library /wp-admin/upload.php3.26 ▲0.0336.64 ▲2.00
WP Version Modifier /wp-admin/options-general.php?page=wpvqsm_3.2330.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
wpvqsm_options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Version in Query String Modifier
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.38 ▼0.181.76 ▲0.0444.55 ▼2.00
Dashboard /wp-admin2,198 ▲185.50 ▼0.1681.65 ▼4.4038.90 ▼1.66
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0035.89 ▲2.0633.77 ▼2.60
Add New Post /wp-admin/post-new.php1,531 ▲322.95 ▼0.28685.56 ▲16.2377.24 ▲9.44
Media Library /wp-admin/upload.php1,406 ▲94.17 ▼0.04100.82 ▼5.1843.69 ▼2.52
WP Version Modifier /wp-admin/options-general.php?page=wpvqsm_8812.0424.1329.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/wp-version-in-query-string-modifier/tmpl/menu.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: link, query string, remove query string, version, optimization...

wp-version-in-query-string-modifier/wp-version-in-query-string-modifier.php 92% from 13 tests

The main PHP file in "WP Version in Query String Modifier" ver. 1.0.0.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin205 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22390205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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

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