Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼310.51ms] Passed 4 tests
A check of server-side resources used by AdRam
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 396.20 ▲345.97 |
Dashboard /wp-admin | 3.50 ▲0.09 | 32.79 ▼4.47 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 37.84 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 92.37 ▼1,238.26 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 26.35 ▼0.12 |
AdRam /wp-admin/options-general.php?page=adram-plugin | 3.34 | 23.97 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_adram_widget |
Browser metrics Passed 4 tests
A check of browser resources used by AdRam
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲38 | 15.91 ▲0.29 | 6.05 ▲0.01 | 2.29 ▼0.26 |
Dashboard /wp-admin | 2,897 ▲39 | 6.11 ▼0.10 | 115.10 ▼18.70 | 152.16 ▼9.29 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▼0.00 | 61.83 ▼0.08 | 135.72 ▼4.60 |
Add New Post /wp-admin/post-new.php | 1,755 ▲37 | 21.56 ▲4.45 | 446.38 ▲22.13 | 156.64 ▼6.38 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.51 ▼0.05 | 143.12 ▲5.79 | 191.24 ▲0.76 |
AdRam /wp-admin/options-general.php?page=adram-plugin | 1,091 | 2.41 | 55.09 | 139.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_adram_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adram/adram.php:14
- > PHP Warning
Use of undefined constant ADRAM_HOSTNAME - assumed 'ADRAM_HOSTNAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/adram/includes/adram.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adram/includes/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adram/admin/adram-admin.php:3
- > PHP Warning
Use of undefined constant ADRAM_HOSTNAME - assumed 'ADRAM_HOSTNAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/adram/includes/adram.php on line 3
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ad, adram
adram/adram.php 92% from 13 tests
The primary PHP file in "AdRam" version 0.4.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin408 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 42 | 33 | 361 |
PO File | 1 | 15 | 15 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-1544x500.png | 123.74KB | 51.13KB | ▼ 58.68% |
images/banner-772x250.png | 61.24KB | 18.70KB | ▼ 69.46% |