Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼275.38ms] Passed 4 tests
This is a short check of server-side resources used by Banner Ad Advertising Manager by Loomisoft
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲1.07 | 73.17 ▲55.02 |
Dashboard /wp-admin | 3.84 ▲0.44 | 41.93 ▲5.16 |
Posts /wp-admin/edit.php | 3.88 ▲0.24 | 43.39 ▲5.28 |
Add New Post /wp-admin/post-new.php | 6.56 ▼0.41 | 93.23 ▼1,166.96 |
Media Library /wp-admin/upload.php | 3.85 ▲0.56 | 205.85 ▲179.62 |
Ad Banners /wp-admin/edit.php?post_type=lsadbanner | 3.87 | 39.38 |
Reports /wp-admin/edit.php?post_type=lsadbanner&page=reports_page | 3.83 | 42.32 |
Documentation /wp-admin/edit.php?post_type=lsadbanner&page=documentation_page | 3.83 | 44.17 |
Server storage [IO: ▲2.15MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 125 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_ls_abm_events |
New WordPress options |
---|
ls_abm_option |
widget_ls_abm_banner_widget |
Browser metrics Passed 4 tests
Banner Ad Advertising Manager by Loomisoft: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,851 ▲129 | 16.20 ▲0.54 | 6.65 ▲1.12 | 2.32 ▼0.08 |
Dashboard /wp-admin | 2,969 ▲111 | 6.19 ▲0.04 | 123.42 ▼12.66 | 243.87 ▲75.38 |
Posts /wp-admin/edit.php | 2,764 ▲79 | 3.30 ▲0.06 | 70.98 ▲6.64 | 196.37 ▲52.36 |
Add New Post /wp-admin/post-new.php | 1,693 ▼18 | 20.18 ▼0.62 | 432.90 ▼37.02 | 188.19 ▼60.49 |
Media Library /wp-admin/upload.php | 1,769 ▲71 | 5.62 ▲0.12 | 146.89 ▼0.71 | 310.91 ▲57.82 |
Ad Banners /wp-admin/edit.php?post_type=lsadbanner | 1,539 | 3.26 | 65.14 | 185.77 |
Reports /wp-admin/edit.php?post_type=lsadbanner&page=reports_page | 1,474 | 3.63 | 96.13 | 201.84 |
Documentation /wp-admin/edit.php?post_type=lsadbanner&page=documentation_page | 1,387 | 2.73 | 57.08 | 197.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ls_abm_events
- This plugin did not uninstall successfully, leaving 2 options in the database
- ls_abm_option
- widget_ls_abm_banner_widget
Smoke tests 75% 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)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lsadbanner&page=documentation_page
- > User deprecated in wp-includes/functions.php+5691
contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: You should set the name of your plugin on the first line (
=== Banner Ad Advertising Manager by Loomisoft===
)
loomisoft-ad-banner-manager/loomisoft-ad-banner-manager.php 92% from 13 tests
The primary PHP file in "Banner Ad Advertising Manager by Loomisoft" version 2.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin23,983 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 39 | 3,158 | 3,053 | 13,383 |
HTML | 28 | 724 | 27 | 2,934 |
PHP | 7 | 699 | 80 | 2,429 |
CSS | 5 | 491 | 59 | 2,292 |
Markdown | 6 | 790 | 0 | 2,160 |
SQL | 2 | 0 | 0 | 717 |
Bourne Shell | 1 | 4 | 0 | 34 |
JSON | 7 | 0 | 0 | 28 |
make | 1 | 4 | 2 | 6 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 163)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 171.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 359.00 |
Average method complexity | 8.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 163.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 67 | 94.37% |
▷ Public methods | 71 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ls-wp-menu-icon.png | 19.81KB | 0.46KB | ▼ 97.67% |
images/ls-wp-mce-icon.png | 20.80KB | 0.67KB | ▼ 96.78% |
images/ls-wp-admin-branding.png | 65.37KB | 2.53KB | ▼ 96.13% |
js/flot/examples/background.png | 0.23KB | 0.33KB | 0.00% |