Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.83MB] [CPU: ▼33.28ms] Passed 4 tests
A check of server-side resources used by Alpha Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.45 ▼2.11 |
Dashboard /wp-admin | 3.11 ▼0.19 | 26.04 ▼19.72 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 29.23 ▼21.03 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 24.90 ▼81.49 |
Media Library /wp-admin/upload.php | 3.11 ▼0.12 | 24.97 ▼10.86 |
Alpha Cache /wp-admin/options-general.php?page=alpha-cache/ac.class.php | 3.12 | 24.24 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The plugin illegally modified 1 file (3.15KB) outside of "wp-content/plugins/alpha-cache/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Alpha Cache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.36 ▼0.95 | 5.35 ▲3.54 | 39.13 ▼5.56 |
Dashboard /wp-admin | 2,204 ▲18 | 5.85 ▼0.08 | 101.37 ▼11.10 | 39.59 ▼2.15 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.03 | 39.31 ▼4.07 | 34.58 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.69 ▼5.34 | 692.85 ▼6.66 | 66.51 ▲3.85 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.17 ▼0.05 | 96.49 ▼9.48 | 40.13 ▼6.39 |
Alpha Cache /wp-admin/options-general.php?page=alpha-cache/ac.class.php | 1,233 | 1.73 | 27.27 | 46.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=alpha-cache/ac.class.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=alpha-cache/ac.class.php
- > Notice in wp-content/plugins/alpha-cache/ac.class.php+640
Undefined index: action
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 errors when accessed directly with GET requests:
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/alpha-cache/settings.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
alpha-cache/alpha_cache.php 92% from 13 tests
The main PHP file in "Alpha Cache" ver. 1.2.005 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("alpha-cache.php" instead of "alpha_cache.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
There were no executable files found in this plugin797 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 151 | 249 | 797 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 94.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 37 | |
▷ Static methods | 7 | 18.92% |
▷ Public methods | 27 | 72.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 27.03% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin