Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.96ms] Passed 4 tests
This is a short check of server-side resources used by OPcache Dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.65 ▼2.28 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.83 ▼0.83 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.90 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.00 ▼1.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.15 ▲2.93 |
Manual Control /wp-admin/admin.php?page=opcache-manual | 3.24 | 32.83 |
Configuration /wp-admin/admin.php?page=opcache-config | 3.29 | 31.90 |
Status /wp-admin/admin.php?page=opcache-status | 3.26 | 25.71 |
Dashboard /wp-admin/admin.php?page=opcache | 3.28 | 32.41 |
Scripts /wp-admin/admin.php?page=opcache-scripts | 6.60 | 72.64 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by OPcache Dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲203 | 13.72 ▼1.05 | 2.11 ▲0.18 | 34.34 ▼15.08 |
Dashboard /wp-admin | 2,344 ▲153 | 5.49 ▲0.58 | 107.64 ▼5.99 | 43.52 ▲0.02 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▲0.00 | 41.16 ▲3.03 | 35.66 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.37 ▲0.34 | 639.92 ▼19.89 | 55.09 ▲3.95 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.22 ▲0.01 | 97.43 ▼1.44 | 40.53 ▼5.73 |
Manual Control /wp-admin/admin.php?page=opcache-manual | 893 | 2.03 | 25.90 | 25.61 |
Configuration /wp-admin/admin.php?page=opcache-config | 1,461 | 2.18 | 26.50 | 31.61 |
Status /wp-admin/admin.php?page=opcache-status | 1,166 | 2.15 | 22.02 | 29.39 |
Dashboard /wp-admin/admin.php?page=opcache | 1,493 | 3.52 | 62.89 | 46.86 |
Scripts /wp-admin/admin.php?page=opcache-scripts | 1,473 | 2.06 | 22.75 | 32.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 58 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=opcache-status
- > Warning in wp-admin/includes/class-wp-list-table.php+622
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/opcache/opcache.php
- 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/opcache/views/widgets/version-info.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/opcache/views/widgets/graph.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/opcache/views/widgets/version-info.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/opcache/views/widgets/ctrl.php:22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/opcache/views/admin.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/opcache/views/widgets/version-info.php:6
- > PHP Notice
Undefined variable: data in wp-content/plugins/opcache/views/widgets/version-info.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/opcache/views/widgets/dashboard.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/opcache/views/admin.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/opcache/views/widgets/dashboard.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: dashboard, php, server, stats, opcache...
opcache/opcache.php Passed 13 tests
The main file in "OPcache Dashboard" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
OPcache dashboard designed for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,188 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 116 | 18 | 997 |
SVG | 3 | 2 | 2 | 515 |
CSS | 3 | 69 | 31 | 429 |
JavaScript | 5 | 39 | 9,275 | 165 |
HTML | 1 | 9 | 0 | 82 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.75 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 47 | |
▷ Static methods | 4 | 8.51% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin