Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/jomniaga-ad-manager/jomniaga.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; WPJomniaga has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼57.73ms] Passed 4 tests
This is a short check of server-side resources used by Ashadee Ad Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.37 | 5.56 ▼40.08 |
Dashboard /wp-admin | 2.38 ▼1.18 | 6.30 ▼49.48 |
Posts /wp-admin/edit.php | 2.38 ▼1.30 | 8.60 ▼43.86 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.76 | 7.19 ▼97.48 |
Media Library /wp-admin/upload.php | 2.38 ▼1.11 | 8.34 ▼31.86 |
Ashadee /wp-admin/options-general.php?page=ashadee | 2.38 | 5.98 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 23 new options
New WordPress options |
---|
wpjomniaga_keyword_limit_percomment |
wpjomniaga_convert_single_post |
widget_recent-posts |
widget_recent-comments |
wpjomniaga_link_no_follow |
wpjomniaga_related_title |
wpjomniaga_keyword_limit_perpage |
wpjomniaga_tracking_code |
wpjomniaga_related_show |
wpjomniaga_convert_comment |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Ashadee Ad Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.38 ▲0.01 | 1.97 ▲0.11 | 41.12 ▼4.55 |
Dashboard /wp-admin | 2,195 ▲18 | 5.69 ▲0.14 | 102.47 ▼6.13 | 44.14 ▼2.10 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.00 | 37.81 ▲1.46 | 34.56 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.56 ▲5.82 | 656.06 ▼57.23 | 51.04 ▼5.05 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.20 ▼0.01 | 101.30 ▼20.03 | 44.34 ▼3.75 |
Ashadee /wp-admin/options-general.php?page=ashadee | 1,150 | 2.07 | 24.62 | 29.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/jomniaga-ad-manager/jomniaga.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; WPJomniaga has a deprecated constructor
- Zombie WordPress options were found after uninstall: 23 options
- wpjomniaga_related_title
- wpjomniaga_convert_limit_perpage
- wpjomniaga_keyword_limit_perpage
- wpjomniaga_tracking_code
- wpjomniaga_username
- wpjomniaga_convert_archive
- widget_recent-posts
- wpjomniaga_category
- wpjomniaga_link_new_window
- wpjomniaga_convert_comment
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ashadee
- > Deprecated in wp-content/plugins/jomniaga-ad-manager/jomniaga.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; WPJomniaga has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=ashadee
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=ashadee
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jomniaga-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ashadee
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jomniaga-ad-manager/jomniaga.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=ashadee
- > Network (severe)
wp-content/plugins/jomniaga/js/script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Enter your Ashadee username, add tracking code, and select a category or choose Any Category by default), #2 (Display related affiliate offers at the bottom of each post, based on keywords used in that post), #3 (Choose where and how keywords should be automatically converted to your affiliate links)
jomniaga-ad-manager/jomniaga.php 85% from 13 tests
The entry point to "Ashadee Ad Manager" version 1.0.12 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("jomniaga-ad-manager.php" instead of "jomniaga.php")
- Description: The description should be shorter than 140 characters (currently 240 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected625 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 95 | 38 | 572 |
JavaScript | 1 | 12 | 0 | 52 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 129.00 |
▷ Minimum class complexity | 129.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 10.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin