Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-admin-cache/index.php+41
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.84MB] [CPU: ▼49.16ms] Passed 4 tests
Analyzing server-side resources used by WP Admin Cache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.58 ▼10.26 |
Dashboard /wp-admin | 2.11 ▼1.20 | 7.86 ▼39.37 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.41 ▼41.35 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.89 ▼87.61 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.72 ▼28.30 |
WP Admin Cache /wp-admin/options-general.php?page=wp-admin-cache | 2.11 | 7.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Admin Cache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.37 ▼1.01 | 1.46 ▼0.73 | 44.68 ▲0.92 |
Dashboard /wp-admin | 2,217 ▲29 | 5.88 ▲0.80 | 96.28 ▼6.81 | 43.63 ▼0.18 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.03 | 39.62 ▼1.96 | 34.36 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 18.53 ▲0.34 | 595.13 ▼12.54 | 54.02 ▼7.22 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.19 ▼0.08 | 99.42 ▲1.85 | 40.81 ▼5.16 |
WP Admin Cache /wp-admin/options-general.php?page=wp-admin-cache | 893 | 2.04 | 23.18 | 25.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/wp-admin-cache/index.php+41
Trying to access array offset on value of type null
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-admin-cache
- > Notice in wp-content/plugins/wp-admin-cache/settings.php+66
Trying to access array offset on value of type null
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: admin performance, slow admin, woocommerce performance, admin speed, slow woocommerce...
wp-admin-cache/index.php 92% from 13 tests
This is the main PHP file of "WP Admin Cache" version 0.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-cache.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
Good job! No executable or dangerous file extensions detected320 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 16 | 233 |
JavaScript | 1 | 9 | 0 | 46 |
PO File | 1 | 11 | 12 | 39 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
There are no PNG files in this plugin