Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼32.36ms] Passed 4 tests
An overview of server-side resources used by Advert Preloader
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.62 ▼12.98 |
Dashboard /wp-admin | 3.00 ▼0.30 | 22.92 ▼27.26 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 24.14 ▼18.89 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 24.88 ▼70.32 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.23 ▼10.21 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
advert_preloader_all_options |
Browser metrics Passed 4 tests
A check of browser resources used by Advert Preloader
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 14.02 ▼0.37 | 6.33 ▲4.04 | 44.18 ▼2.00 |
Dashboard /wp-admin | 2,225 ▲34 | 4.89 ▲0.01 | 99.79 ▼4.70 | 38.93 ▼4.00 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.00 | 34.09 ▼3.67 | 34.24 ▲0.84 |
Add New Post /wp-admin/post-new.php | 6,479 ▲4,945 | 20.21 ▼2.82 | 894.14 ▲207.83 | 66.89 ▲9.99 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.23 ▲0.01 | 97.59 ▼8.07 | 43.90 ▲0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/advertpreloader/index.php+27
Undefined index: page
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- advert_preloader_all_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advertpreloader/templates/header_tpl.php
- > /wp-content/plugins/advertpreloader/templates/footer_tpl.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advertpreloader/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advertpreloader/templates/home_tpl.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("")
advertpreloader/index.php 85% from 13 tests
The main file in "Advert Preloader" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 252 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("advertpreloader.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin577 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 93 | 81 | 310 |
HTML | 1 | 10 | 0 | 106 |
CSS | 2 | 2 | 5 | 72 |
PO File | 1 | 27 | 27 | 66 |
JavaScript | 2 | 9 | 5 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin