Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.81ms] Passed 4 tests
This is a short check of server-side resources used by Prevent Browser Caching
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.75 ▲4.38 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.99 ▼18.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.57 ▼4.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.31 ▼10.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.84 ▼1.80 |
Prevent Browser Caching /wp-admin/options-general.php?page=prevent-browser-caching | 3.21 | 33.09 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Prevent Browser Caching
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.73 ▲0.32 | 2.23 ▼0.06 | 44.57 ▼2.46 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▼0.07 | 87.83 ▼10.68 | 42.00 ▼1.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 33.76 ▼10.64 | 36.65 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.18 ▲0.05 | 675.50 ▲62.43 | 72.33 ▲18.78 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.18 ▼0.06 | 99.07 ▼2.73 | 39.54 ▼7.26 |
Prevent Browser Caching /wp-admin/options-general.php?page=prevent-browser-caching | 845 | 1.69 | 29.57 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/prevent-browser-caching/includes/class-prevent-browser-caching.php:169
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prevent-browser-caching/includes/admin/class-prevent-browser-caching-admin-settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is required in prevent-browser-caching/assets to your readme.txt
- Contributors: The plugin contributors field is missing
prevent-browser-caching/prevent-browser-caching.php Passed 13 tests
The entry point to "Prevent Browser Caching" version 2.3.4 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin375 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 156 | 375 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.50 |
▷ 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin