Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.30ms] Passed 4 tests
An overview of server-side resources used by Add File Version (AFV)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.75 ▲3.63 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.28 ▼4.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.76 ▲4.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.92 ▼4.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.04 ▲4.67 |
Add File Version /wp-admin/tools.php?page=afv_admin_page | 3.21 | 31.45 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
afv_manual_ver_input |
theysaidso_admin_options |
afv_manual_ver |
widget_recent-comments |
afv_auto_ver |
afv_ver_target_file |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add File Version (AFV)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲137 | 13.75 ▼0.87 | 2.10 ▲0.39 | 43.36 ▼1.82 |
Dashboard /wp-admin | 2,253 ▲65 | 5.18 ▲0.27 | 112.74 ▲1.60 | 39.33 ▼1.97 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.33 ▲0.27 | 37.83 ▼0.62 | 33.95 ▼6.59 |
Add New Post /wp-admin/post-new.php | 1,529 ▼5 | 23.33 ▼0.02 | 667.30 ▲7.02 | 60.38 ▲5.12 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.40 ▲0.21 | 101.75 ▼0.77 | 40.56 ▼3.09 |
Add File Version /wp-admin/tools.php?page=afv_admin_page | 1,070 | 2.53 | 46.21 | 32.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- afv_ver_target_file
- can_compress_scripts
- afv_auto_ver
- widget_recent-posts
- theysaidso_admin_options
- afv_manual_ver
- afv_manual_ver_input
- widget_theysaidso_widget
- widget_recent-comments
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)
Good news, no errors were detected
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-file-version-afv/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-file-version-afv/ajax-functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (20 tag instead of maximum 10)
add-file-version-afv/index.php 92% from 13 tests
The main PHP file in "Add File Version (AFV)" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-file-version-afv.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
There were no executable files found in this plugin735 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 38 | 0 | 423 |
PHP | 4 | 79 | 44 | 185 |
JavaScript | 4 | 72 | 19 | 127 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin