Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.30ms] Passed 4 tests
This is a short check of server-side resources used by My Custom Ads Management
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 45.77 ▲9.49 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.57 ▼11.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.63 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.37 ▼24.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.06 ▲2.29 |
Manage Custom-Ads /wp-admin/admin.php?page=customads-listing | 3.19 | 32.58 |
Help /wp-admin/admin.php?page=help | 3.24 | 28.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_customads |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_mycustomads_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Custom Ads Management
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.36 ▲0.01 | 1.96 ▲0.39 | 45.01 ▲4.01 |
Dashboard /wp-admin | 2,229 ▲49 | 5.64 ▼0.03 | 93.83 ▲8.59 | 43.56 ▲0.20 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.04 ▲0.08 | 40.40 ▲3.80 | 36.86 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.25 ▼0.49 | 655.30 ▼30.43 | 57.87 ▼3.88 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.18 ▼0.09 | 102.71 ▼7.10 | 46.44 ▼3.16 |
Manage Custom-Ads /wp-admin/admin.php?page=customads-listing | 961 | 2.00 | 28.29 | 28.80 |
Help /wp-admin/admin.php?page=help | 887 | 1.99 | 22.25 | 27.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_mycustomads_widget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Notice in wp-content/plugins/my-custom-ads/mycustomads_function.php+61
Undefined index: original_publish
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Notice in wp-content/plugins/my-custom-ads/mycustomads_function.php+84
Undefined index: action
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Notice in wp-content/plugins/my-custom-ads/mycustomads_function.php+69
Undefined index: action2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Notice in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php+25
Undefined variable: customadsArray
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Warning in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php+144
usort() expects parameter 1 to be array, null given
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Warning in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php+146
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Warning in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php+147
array_slice() expects parameter 1 to be array, null given
- > GET request to /wp-admin/admin.php?page=customads-listing
- > Notice in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php+163
Undefined variable: message
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/my-custom-ads/admin/help.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-custom-ads/mycustomads_function.php:98
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/my-custom-ads/admin/edit_customads.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php on line 3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/my-custom-ads/mycustomads.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/my-custom-ads/mycustomads.php:18
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-custom-ads/admin/ads_inventory_details.php on line 3
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/my-custom-ads/admin/edit_customads.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=help
- > Network (severe)
wp-content/plugins/mycustomads/css/customads_css.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=help
- > Network (severe)
wp-content/plugins/mycustomads/js/customads_js.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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:
- Tags: There are too many tags (36 tag instead of maximum 10)
my-custom-ads/mycustomads.php 92% from 13 tests
The principal PHP file in "My Custom Ads Management" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("my-custom-ads.php" instead of "mycustomads.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
No dangerous file extensions were detected839 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 36 | 60 | 539 |
JavaScript | 1 | 24 | 30 | 200 |
CSS | 2 | 2 | 0 | 100 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin