84% resource-versioning

Code Review | Resource Versioning

WordPress plugin Resource Versioning scored 84% from 54 tests.

About plugin

  • Plugin page: resource-versioning
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: Jul 21, 2018
  • Number of updates: 8
  • Update frequency: every 137.6 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.42ms] Passed 4 tests

Server-side resources used by Resource Versioning
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.50 ▼3.38
Dashboard /wp-admin3.32 ▲0.0245.13 ▼1.32
Posts /wp-admin/edit.php3.37 ▲0.0246.57 ▼2.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.16 ▼10.62
Media Library /wp-admin/upload.php3.24 ▲0.0232.68 ▼0.60

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Resource Versioning: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,693 ▼428.03 ▼6.321.30 ▼0.817.29 ▼31.76
Dashboard /wp-admin2,206 ▲214.88 ▼1.01107.10 ▲2.2741.37 ▼1.11
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0339.22 ▼2.6034.12 ▼1.14
Add New Post /wp-admin/post-new.php1,535 ▼723.11 ▲4.85677.43 ▲75.5560.31 ▲8.72
Media Library /wp-admin/upload.php1,379 ▼94.25 ▲0.0399.88 ▼2.6948.94 ▲5.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > Break-in attempt detected
      revving_direct_access /wp-content/plugins/resource-versioning/revving.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

resource-versioning/revving.php 92% from 13 tests

The main PHP script in "Resource Versioning" version 0.3.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("resource-versioning.php" instead of "revving.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1215076

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions3
▷ Named functions3100.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