Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.06ms] Passed 4 tests
This is a short check of server-side resources used by Disable Version Caching - Khanakia
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 39.15 ▼3.16 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.56 ▼6.19 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 52.75 ▲4.01 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.43 ▼9.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.67 ▲3.02 |
Disable Version Caching /wp-admin/options-general.php?page=disable-version-caching | 3.26 | 36.11 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Version Caching - Khanakia
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.31 ▼1.07 | 1.95 ▲0.08 | 40.17 ▼6.69 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.95 | 101.41 ▼15.17 | 38.43 ▼7.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 36.64 ▼0.99 | 32.75 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 22.96 ▼0.04 | 650.67 ▼29.57 | 51.29 ▼6.24 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.19 ▲0.02 | 93.84 ▼5.38 | 41.99 ▼1.32 |
Disable Version Caching /wp-admin/options-general.php?page=disable-version-caching | 851 | 2.03 | 27.41 | 26.72 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- 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)
Even though no errors were found, 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-version-caching/includes/admin/class-disable-version-caching-admin-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/disable-version-caching/includes/class-disable-version-caching.php:164
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
disable-version-caching/disable-version-caching.php Passed 13 tests
The entry point to "Disable Version Caching - Khanakia" version 1.0.1 is a PHP file that has certain tags in its header comment area
138 characters long description:
Updates the assets version of all CSS and JS files. Shows the latest changes on the site without asking the client to clear browser cache.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin371 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 95 | 156 | 371 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected