Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.28MB] [CPU: ▲10.91ms] 75% from 4 tests
Server-side resources used by OPCache Scripts
Please have a look at the following items
- RAM: Try to keep total memory usage under 10MB (currently 14.54MB on /wp-admin/tools.php?page=opcache)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.74 ▲4.27 | 55.85 ▲14.45 |
Dashboard /wp-admin | 7.58 ▲4.28 | 65.74 ▲15.31 |
Posts /wp-admin/edit.php | 7.70 ▲4.34 | 59.76 ▲11.49 |
Add New Post /wp-admin/post-new.php | 10.16 ▲4.28 | 106.94 ▲2.40 |
Media Library /wp-admin/upload.php | 7.51 ▲4.28 | 56.30 ▲16.63 |
OPCache /wp-admin/tools.php?page=opcache | 14.54 | 114.46 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics 75% from 4 tests
An overview of browser requirements for OPCache Scripts
You may want to improve the following
- Nodes: Limit the number of DOM nodes under 25,000 (currently 89,140 on /wp-admin/tools.php?page=opcache)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.77 ▲0.42 | 1.71 ▲0.09 | 40.68 ▼4.99 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.04 | 85.26 ▼4.91 | 38.68 ▼3.92 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.00 | 34.09 ▼4.54 | 34.48 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.99 ▼0.23 | 597.75 ▼79.67 | 58.36 ▲1.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.28 ▲0.04 | 98.44 ▼5.10 | 43.38 ▼5.05 |
OPCache /wp-admin/tools.php?page=opcache | 89,140 | 4.96 | 211.24 | 370.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opcache-scripts/opcache.php:19
- > 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 86% from 29 tests
readme.txt 81% 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: Please add an image for screenshot #1 (OPCache configuration settings)
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #0, #0, #0, #0 in opcache-scripts/assets to your readme.txt
opcache-scripts/opcache.php 92% from 13 tests
"OPCache Scripts" version 1.1.6'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: The principal plugin file should be the same as the plugin slug ("opcache-scripts.php" instead of "opcache.php")
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
Good job! No executable or dangerous file extensions detected728 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 107 | 13 | 487 |
Sass | 1 | 28 | 0 | 134 |
CSS | 1 | 1 | 1 | 103 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin