83% mhm-inlineversioning

Code Review | Inline version numbering for WordPress

WordPress plugin Inline version numbering for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: mhm-inlineversioning
  • Plugin version: 2.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: Dec 19, 2016
  • Number of updates: 22
  • Update frequency: every 120.0 days
  • Top authors: markhowellsmead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /872 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Inline version numbering for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.04 ▼4.49
Dashboard /wp-admin3.33 ▼0.0244.24 ▼17.98
Posts /wp-admin/edit.php3.38 ▲0.0246.29 ▲0.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.31 ▼15.48
Media Library /wp-admin/upload.php3.25 ▲0.0234.30 ▼1.43

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 1 file (0.57KB) outside of "wp-content/plugins/mhm-inlineversioning/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Inline version numbering for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,693 ▼428.01 ▼6.381.35 ▼0.406.60 ▼41.79
Dashboard /wp-admin2,209 ▲245.91 ▲1.00101.71 ▼0.8638.06 ▼5.03
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0141.32 ▲3.4735.09 ▲1.71
Add New Post /wp-admin/post-new.php1,533 ▲1423.22 ▲0.09674.93 ▼30.0479.54 ▲19.48
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0595.68 ▼12.2946.52 ▼0.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mhm-inlineversioning/index.php:18

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)
No browser issues were found

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
5 plugin tags: javascript, css, versioning, htaccess, assets

mhm-inlineversioning/index.php 85% from 13 tests

The main file in "Inline version numbering for WordPress" v. 2.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 276 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mhm-inlineversioning.php" instead of "index.php")

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
No dangerous file extensions were detected58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162658

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin