Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.24ms] Passed 4 tests
Server-side resources used by Clear OPcache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.79 ▼4.62 |
Dashboard /wp-admin | 3.32 ▲0.01 | 53.87 ▲5.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.88 ▲5.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 102.69 ▲9.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.75 ▼1.15 |
OPcache /wp-admin/options-general.php?page=bc_cocp | 8.68 | 55.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
bc_cocp_plugin_activated |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
bc_cocp_plugin_notice_shown |
Browser metrics Passed 4 tests
A check of browser resources used by Clear OPcache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.73 ▼0.90 | 1.63 ▲0.01 | 40.84 ▼4.77 |
Dashboard /wp-admin | 2,227 ▲39 | 5.90 ▲0.00 | 180.43 ▲76.08 | 53.90 ▲10.02 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.97 ▼0.07 | 42.91 ▲7.93 | 35.27 ▲5.24 |
Add New Post /wp-admin/post-new.php | 1,556 ▲34 | 18.41 ▼4.85 | 620.64 ▼44.54 | 53.70 ▼1.83 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.23 ▲0.00 | 93.92 ▼6.26 | 40.31 ▼3.64 |
OPcache /wp-admin/options-general.php?page=bc_cocp | 1,099 | 2.02 | 21.28 | 27.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- bc_cocp_plugin_notice_shown
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- bc_cocp_plugin_activated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/clear-opcache/clear_op_cache_plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
clear-opcache/clear_op_cache_plugin.php 92% from 13 tests
This is the main PHP file of "Clear OPcache" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clear-opcache.php" instead of "clear_op_cache_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected183 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 20 | 183 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin