Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▼1.00ms] Passed 4 tests
A check of server-side resources used by ADS MANIA
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 45.81 ▲3.23 |
Dashboard /wp-admin | 3.61 ▲0.31 | 48.84 ▼1.09 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 52.92 ▲9.65 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 90.55 ▼9.76 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 38.65 ▲3.63 |
Ads Genre /wp-admin/edit-tags.php?taxonomy=ads_genre&post_type=ads_post | 3.51 | 36.67 |
Ads /wp-admin/options-general.php?page=adsmania_settings | 3.48 | 34.24 |
Add New Ads /wp-admin/post-new.php?post_type=ads_post | 3.71 | 47.33 |
All Ads /wp-admin/edit.php?post_type=ads_post | 3.55 | 39.43 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 13 new options
New WordPress options |
---|
ads_sett_ic_bg |
db_upgraded |
can_compress_scripts |
ads_sett_c_max_ads |
widget_recent-posts |
ads_sett_ic_close |
ads_sett_click_cont_msg |
widget_theysaidso_widget |
theysaidso_admin_options |
ads_sett_user_cont_msg |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ADS MANIA
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲228 | 14.07 ▼0.28 | 5.86 ▲3.75 | 43.63 ▼7.79 |
Dashboard /wp-admin | 2,275 ▲87 | 5.32 ▲0.28 | 112.96 ▲11.44 | 38.30 ▼2.55 |
Posts /wp-admin/edit.php | 2,156 ▲67 | 2.18 ▲0.19 | 45.77 ▲11.96 | 37.74 ▲3.57 |
Add New Post /wp-admin/post-new.php | 1,749 ▲235 | 24.82 ▲7.35 | 646.95 ▼53.21 | 46.84 ▼20.80 |
Media Library /wp-admin/upload.php | 1,474 ▲89 | 4.51 ▲0.34 | 90.02 ▼13.16 | 43.86 ▼2.17 |
Ads Genre /wp-admin/edit-tags.php?taxonomy=ads_genre&post_type=ads_post | 1,350 | 2.62 | 36.98 | 50.37 |
Ads /wp-admin/options-general.php?page=adsmania_settings | 1,069 | 2.46 | 45.54 | 28.36 |
Add New Ads /wp-admin/post-new.php?post_type=ads_post | 2,518 | 4.54 | 82.18 | 36.57 |
All Ads /wp-admin/edit.php?post_type=ads_post | 1,120 | 2.62 | 39.26 | 28.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 13 options in the database
- ads_sett_c_max_ads
- theysaidso_admin_options
- ads_sett_c_ads
- widget_recent-comments
- ads_sett_user_cont_msg
- db_upgraded
- ads_sett_click_cont_msg
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=ads_post
- > User deprecated in wp-includes/functions.php+5453
Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ads-mania/admin/partials/ads_post_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/ads-mania/admin/partials/ads_post_options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Contributors: Contributors not specified
ads-mania/adsmania.php 92% from 13 tests
The principal PHP file in "ADS MANIA" v. 1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ads-mania.php" instead of "adsmania.php")
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
There were no executable files found in this plugin1,468 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 245 | 686 | 1,071 |
PO File | 1 | 95 | 104 | 208 |
CSS | 5 | 11 | 13 | 96 |
JavaScript | 3 | 17 | 18 | 93 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 90.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.80% |
Functions | 12 | |
▷ Named functions | 1 | 8.33% |
▷ Anonymous functions | 11 | 91.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
admin/css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
admin/css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.32KB | 0.18KB | ▼ 42.38% |