Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.48ms] Passed 4 tests
Server-side resources used by WP File Version
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.08 ▼3.73 |
Dashboard /wp-admin | 3.56 ▲0.26 | 46.37 ▼6.05 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 48.28 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 94.89 ▲6.31 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.38 ▲3.13 |
Template /wp-admin/admin.php?page=wfv_settings_templates | 3.49 | 39.05 |
Settings /wp-admin/admin.php?page=wfv_settings | 3.49 | 42.63 |
WP Edit File /wp-admin/admin.php?page=wfv_edit_file | 3.50 | 37.71 |
WP File Manage Versions /wp-admin/admin.php?page=wfv_manage_versions | 3.48 | 33.50 |
Icons /wp-admin/admin.php?page=wfv_settings_icons | 3.49 | 36.69 |
Add File /wp-admin/admin.php?page=wfv_manage_files | 3.50 | 36.06 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- The plugin illegally modified 1 file (0.03KB) outside of "wp-content/plugins/wp-file-version/" and "wp-content/uploads/"
- (new file) wp-content/wfv_files/.htaccess
Filesystem: 62 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_wfv_files |
New WordPress options |
---|
widget_recent-comments |
wfv_db_version |
theysaidso_admin_options |
wfv_setting_file_tpl |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
wfv_setting_file_css |
Browser metrics Passed 4 tests
A check of browser resources used by WP File Version
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.26 ▼1.49 | 4.07 ▲2.25 | 39.67 ▼3.38 |
Dashboard /wp-admin | 2,251 ▲63 | 4.95 ▲0.07 | 100.16 ▼15.30 | 69.72 ▲21.86 |
Posts /wp-admin/edit.php | 2,141 ▲55 | 2.09 ▲0.08 | 38.16 ▲3.14 | 34.76 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,563 ▲27 | 18.21 ▼4.87 | 798.00 ▲117.03 | 70.40 ▲19.07 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.25 ▲0.08 | 114.14 ▲19.01 | 43.62 ▲0.23 |
Template /wp-admin/admin.php?page=wfv_settings_templates | 1,146 | 3.90 | 48.97 | 91.30 |
Settings /wp-admin/admin.php?page=wfv_settings | 1,107 | 3.81 | 44.37 | 58.87 |
WP Edit File /wp-admin/admin.php?page=wfv_edit_file | 1,011 | 3.75 | 44.35 | 62.16 |
WP File Manage Versions /wp-admin/admin.php?page=wfv_manage_versions | 731 | 2.10 | 19.33 | 19.78 |
Icons /wp-admin/admin.php?page=wfv_settings_icons | 1,309 | 4.97 | 71.52 | 77.09 |
Add File /wp-admin/admin.php?page=wfv_manage_files | 1,540 | 5.40 | 76.90 | 75.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wfv_files
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- wfv_db_version
- wfv_setting_file_css
- theysaidso_admin_options
- can_compress_scripts
- wfv_setting_file_tpl
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wfv_manage_versions
- > Notice in wp-content/plugins/wp-file-version/views/templates/manageVersion.php+7
Undefined index: _wpnonce
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-file-version/views/templates/fileDetailModel.php
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: download, version, file, documents
wp-file-version/wfv.php 85% from 13 tests
"WP File Version" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-file-version.php" instead of "wfv.php")
- Description: The description should be shorter than 140 characters (currently 423 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,968 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 238 | 321 | 1,664 |
SVG | 2 | 0 | 0 | 973 |
JavaScript | 7 | 51 | 67 | 702 |
CSS | 7 | 83 | 49 | 629 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 56.25 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 4 | 6.06% |
▷ Public methods | 65 | 98.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/wfv_new_version.png | 2.06KB | 1.82KB | ▼ 11.30% |
public/images/sort_desc_disabled.png | 1.02KB | 0.25KB | ▼ 75.98% |
public/images/forward_enabled_hover.png | 1.35KB | 0.58KB | ▼ 56.93% |
public/images/back_enabled_hover.png | 1.34KB | 0.60KB | ▼ 55.56% |
public/images/wfv_edit.png | 1.97KB | 1.68KB | ▼ 14.36% |