Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by AdSpirit AdServer Banner Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.78 ▼4.25 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.59 ▼7.20 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.81 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.85 ▼8.45 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.55 ▼0.06 |
Update /wp-admin/admin.php?page=adspirit_banner_update | 3.32 | 34.30 |
Adspirit /wp-admin/options-general.php?page=adspirit_banner_list | 3.29 | 29.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_adspirit_banner |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_adspirit-widget |
db_upgraded |
adspirit_db_version |
adspirit_table_name |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for AdSpirit AdServer Banner Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.43 | 1.65 ▼0.20 | 42.09 ▲0.20 |
Dashboard /wp-admin | 2,213 ▲25 | 4.89 ▼0.00 | 110.56 ▼0.02 | 42.49 ▼1.87 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.01 | 40.46 ▲5.91 | 35.31 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,522 ▼20 | 23.45 ▲5.37 | 681.31 ▲8.38 | 53.99 ▲4.90 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.07 | 99.57 ▼0.18 | 49.13 ▲6.27 |
Update /wp-admin/admin.php?page=adspirit_banner_update | 993 | 1.71 | 24.71 | 24.69 |
Adspirit /wp-admin/options-general.php?page=adspirit_banner_list | 791 | 2.05 | 23.68 | 23.10 |
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
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_adspirit-widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- adspirit_table_name
- widget_theysaidso_widget
- adspirit_db_version
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/adspirit/adspirit.php
- > /wp-content/plugins/adspirit/views/bannerList.php
- > /wp-content/plugins/adspirit/views/bannerUpdate.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adspirit/AdspiritWidget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: responsive, banner, rtb, asynchronous, advertising...
adspirit/adspirit.php 92% from 13 tests
This is the main PHP file of "AdSpirit AdServer Banner Manager" version 4.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 518 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,027 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 180 | 200 | 1,027 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 19 | 30.16% |
▷ Public methods | 61 | 96.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.17% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin