Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼314.25ms] Passed 4 tests
Analyzing server-side resources used by AdSpirit AdServer Banner Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 60.78 ▼8.64 |
Dashboard /wp-admin | 3.52 ▲0.11 | 36.10 ▼0.35 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 41.92 ▼5.05 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 97.41 ▼1,242.34 |
Media Library /wp-admin/upload.php | 3.39 ▲0.10 | 25.42 ▼0.97 |
Adspirit /wp-admin/options-general.php?page=adspirit_banner_list | 3.36 | 25.95 |
Update /wp-admin/admin.php?page=adspirit_banner_update | 3.39 | 23.91 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_adspirit_banner |
New WordPress options |
---|
adspirit_table_name |
widget_adspirit-widget |
adspirit_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for AdSpirit AdServer Banner Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲33 | 15.66 ▲0.49 | 5.71 ▼2.14 | 2.02 ▼0.13 |
Dashboard /wp-admin | 2,879 ▲18 | 6.12 ▼0.05 | 163.84 ▲23.49 | 173.31 ▲10.07 |
Posts /wp-admin/edit.php | 2,693 ▲36 | 3.22 ▼0.01 | 64.85 ▲0.14 | 194.37 ▲52.75 |
Add New Post /wp-admin/post-new.php | 1,693 ▲32 | 21.49 ▲4.90 | 438.45 ▲20.08 | 161.12 ▼14.19 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.52 ▲0.01 | 178.14 ▲37.39 | 190.98 ▼40.23 |
Adspirit /wp-admin/options-general.php?page=adspirit_banner_list | 1,030 | 2.41 | 53.78 | 101.07 |
Update /wp-admin/admin.php?page=adspirit_banner_update | 1,314 | 2.38 | 55.65 | 97.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 3 options in the database
- widget_adspirit-widget
- adspirit_db_version
- adspirit_table_name
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adspirit/views/bannerList.php
- > /wp-content/plugins/adspirit/views/bannerUpdate.php
- > /wp-content/plugins/adspirit/adspirit.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: asynchronous, adserver, banner, google adsense, advertising...
adspirit/adspirit.php 92% from 13 tests
The entry point to "AdSpirit AdServer Banner Manager" version 4.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable 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
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin