Benchmarks
Plugin footprint 65% 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.56MB] [CPU: ▲0.71ms] Passed 4 tests
A check of server-side resources used by Ad King Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 43.10 ▲6.99 |
Dashboard /wp-admin | 3.87 ▲0.57 | 55.77 ▲8.15 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 51.45 ▲2.06 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 90.93 ▼11.07 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 40.44 ▲4.85 |
Add New /wp-admin/post-new.php?post_type=adverts_posts | 3.95 | 54.66 |
Advert Types /wp-admin/edit-tags.php?taxonomy=advert_types&post_type=adverts_posts | 3.80 | 40.41 |
Settings /wp-admin/edit.php?post_type=adverts_posts&page=adkingpro | 3.85 | 33.77 |
All Adverts /wp-admin/edit.php?post_type=adverts_posts | 3.84 | 38.22 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 26 new options
New WordPress options |
---|
akp_auth_role |
impression_expiry_time |
akp_clear_on_delete |
akp_image_sizes |
widget_adkingpro_widget |
akp_default_rev_click |
akp_track_impressions |
db_upgraded |
akp_custom_css |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Ad King Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.60 ▼0.84 | 7.60 ▲5.96 | 43.14 ▲1.27 |
Dashboard /wp-admin | 2,244 ▲56 | 5.79 ▼0.11 | 111.23 ▼4.08 | 41.59 ▼6.91 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 1.99 ▼0.06 | 35.73 ▼5.19 | 31.57 ▼5.91 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 23.64 ▲0.16 | 668.85 ▲0.13 | 53.29 ▼19.98 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.21 ▼0.01 | 97.58 ▼4.81 | 44.97 ▼1.05 |
Add New /wp-admin/post-new.php?post_type=adverts_posts | 2,560 | 4.22 | 102.12 | 46.52 |
Advert Types /wp-admin/edit-tags.php?taxonomy=advert_types&post_type=adverts_posts | 1,405 | 2.14 | 29.00 | 34.50 |
Settings /wp-admin/edit.php?post_type=adverts_posts&page=adkingpro | 1,375 | 1.95 | 38.82 | 46.38 |
All Adverts /wp-admin/edit.php?post_type=adverts_posts | 1,139 | 2.29 | 45.09 | 29.03 |
Uninstaller [IO: ▲0.76MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the followingZombie WordPress options detected upon uninstall: 26 options
- Uninstaller has failed for this plugin, leaving 33 files (0.76MB) in the plugin directory
- (new file) fonts/FontAwesome.otf
- (new file) css/font-awesome.min.css
- (new file) fonts/fontawesome-webfont.woff
- (new file) fonts/fontawesome-webfont.eot
- (new file) adkingpro.php
- (new file) fonts/fontawesome-webfont.svg
- (new file) css/dynamic.css.php
- (new file) css/adkingpro-styles.css
- (new file) fonts/fontawesome-webfont.ttf
- (new file) css/jquery-ui.css
- ...
- akp_custom_css
- akp_ga_click_action
- theysaidso_admin_options
- akp_ga_imp_action
- akp_default_window_target
- db_upgraded
- can_compress_scripts
- akp_track_impressions
- akp_default_remove_link
- advert_types_children
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=adverts_posts&page=adkingpro
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=adverts_posts&page=adkingpro
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/adkingpro/css/dynamic.css.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/adkingpro/includes/screens/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/adkingpro/includes/output.php:392
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adkingpro/includes/admin_area.php:28
- > PHP Notice
Undefined variable: akp_css in wp-content/plugins/adkingpro/css/dynamic.css.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adkingpro/includes/admin_area.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/adkingpro/adkingpro.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adkingpro/includes/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adkingpro/js/adkingpro-js.php:70
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=adverts_posts
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adkingpro/js/adkingpro-admin-functions.js?ver=1.0.0:449:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=adverts_posts
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=adverts_posts
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adkingpro/js/adkingpro-admin-functions.js?ver=1.0.0:449:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=adverts_posts
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (40 tag instead of maximum 10)
- Screenshots: Please add descriptions for these screenshots #3, #4, #5 in adkingpro/assets to your readme.txt
adkingpro/adkingpro.php 92% from 13 tests
"Ad King Pro" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected4,926 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 264 | 97 | 2,044 |
PO File | 2 | 431 | 505 | 1,093 |
CSS | 3 | 72 | 52 | 927 |
JavaScript | 3 | 70 | 57 | 463 |
SVG | 1 | 0 | 0 | 399 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 63.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/plus_icon.png | 3.47KB | 0.82KB | ▼ 76.46% |
images/akp-icon_32x32.png | 4.31KB | 1.59KB | ▼ 63.04% |
images/akp-icon_16x16.png | 1.66KB | 0.87KB | ▼ 47.73% |
images/akp-icon_32x32_sat.png | 2.13KB | 1.55KB | ▼ 27.02% |
images/akp-icon_16x16_sat.png | 1.49KB | 0.79KB | ▼ 47.32% |