Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼302.36ms] Passed 4 tests
This is a short check of server-side resources used by ADS MANIA
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 57.40 ▲1.83 |
Dashboard /wp-admin | 3.49 ▲0.08 | 41.33 ▲4.49 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 40.68 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 102.05 ▼1,204.09 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 26.50 ▼7.30 |
Add New Ads /wp-admin/post-new.php?post_type=ads_post | 3.88 | 44.04 |
All Ads /wp-admin/edit.php?post_type=ads_post | 3.42 | 27.98 |
Ads /wp-admin/options-general.php?page=adsmania_settings | 3.37 | 25.39 |
Ads Genre /wp-admin/edit-tags.php?taxonomy=ads_genre&post_type=ads_post | 3.37 | 28.07 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ads_sett_ic_bg |
ads_sett_click_cont_msg |
ads_sett_ic_close |
ads_sett_user_cont_msg |
ads_sett_i_ads |
ads_sett_c_ads |
ads_sett_c_max_ads |
Browser metrics Passed 4 tests
Checking browser requirements for ADS MANIA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,963 ▲209 | 16.67 ▲0.99 | 8.83 ▲2.93 | 1.98 ▼0.68 |
Dashboard /wp-admin | 2,949 ▲91 | 6.97 ▲0.65 | 125.57 ▼11.90 | 112.30 ▼55.05 |
Posts /wp-admin/edit.php | 2,754 ▲63 | 3.63 ▲0.40 | 98.00 ▲35.81 | 104.82 ▼39.80 |
Add New Post /wp-admin/post-new.php | 1,728 ▲9 | 15.33 ▼7.05 | 371.06 ▼63.10 | 163.92 ▲5.10 |
Media Library /wp-admin/upload.php | 1,792 ▲94 | 6.27 ▲0.77 | 122.39 ▼19.78 | 196.99 ▲8.04 |
Add New Ads /wp-admin/post-new.php?post_type=ads_post | 3,426 | 6.60 | 113.86 | 108.86 |
All Ads /wp-admin/edit.php?post_type=ads_post | 1,478 | 3.39 | 81.17 | 88.85 |
Ads /wp-admin/options-general.php?page=adsmania_settings | 1,375 | 3.59 | 72.19 | 86.81 |
Ads Genre /wp-admin/edit-tags.php?taxonomy=ads_genre&post_type=ads_post | 1,717 | 3.35 | 79.12 | 86.47 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- ads_sett_ic_bg
- ads_sett_c_ads
- ads_sett_i_ads
- ads_sett_c_max_ads
- ads_sett_ic_close
- ads_sett_user_cont_msg
- ads_sett_click_cont_msg
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=ads_post
- > User deprecated in wp-includes/functions.php+5316
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require 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
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main 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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,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
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
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-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
admin/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
admin/css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
admin/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |