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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.57MB] [CPU: ▼11.04ms] Passed 4 tests
Server-side resources used by o2switch XtremCache
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 46.57 ▲0.86 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.89 ▼2.39 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.45 ▲0.69 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 68.23 ▼42.81 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.32 ▲0.35 |
XtremCache /wp-admin/options-general.php?page=bawo2pc_settings | 3.31 | 30.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
bawo2pc_settings |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for o2switch XtremCache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.47 | 1.70 ▼0.40 | 40.19 ▼6.22 |
Dashboard /wp-admin | 2,196 ▲16 | 5.62 ▼0.05 | 94.67 ▼3.62 | 42.44 ▲0.67 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.01 | 41.93 ▲5.67 | 36.61 ▲2.61 |
Add New Post /wp-admin/post-new.php | 9 ▼1,519 | 0.42 ▼22.57 | 0.10 ▼681.40 | 4.05 ▼60.06 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.16 ▼0.04 | 103.65 ▼7.85 | 63.14 ▲14.64 |
XtremCache /wp-admin/options-general.php?page=bawo2pc_settings | 1,001 | 2.04 | 26.16 | 33.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means an exhaustive test
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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/purge-o2switch-xtremcache/inc/fronck-end.php
- > /wp-content/plugins/purge-o2switch-xtremcache/baw-o2-purge-cache.php
- > /wp-content/plugins/purge-o2switch-xtremcache/inc/fields.php
- > /wp-content/plugins/purge-o2switch-xtremcache/inc/back-end.php
- > /wp-content/plugins/purge-o2switch-xtremcache/inc/front-end.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: xtremcache, cache, o2switch
purge-o2switch-xtremcache/baw-o2-purge-cache.php 92% from 13 tests
The principal PHP file in "o2switch XtremCache" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("purge-o2switch-xtremcache.php" instead of "baw-o2-purge-cache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin452 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 48 | 187 | 366 |
PO File | 1 | 30 | 31 | 86 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
PNG images were not found in this plugin