Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/private-ad/private_ad.php+282
Undefined variable: first_ad_code
Server metrics [RAM: ▼1.88MB] [CPU: ▼56.89ms] Passed 4 tests
An overview of server-side resources used by Private Ad
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 4.87 ▼40.74 |
Dashboard /wp-admin | 2.13 ▼1.18 | 5.51 ▼46.68 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.48 ▼42.18 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.56 ▼97.95 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.16 ▼30.34 |
My Categories /wp-admin/admin.php?page=my-categories | 2.13 | 6.23 |
Advertisement /wp-admin/admin.php?page=private-advertisement | 2.13 | 8.21 |
My Ads /wp-admin/admin.php?page=my-ads | 2.13 | 5.98 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_privatead |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Private Ad
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲174 | 14.54 ▲0.37 | 1.96 ▼0.09 | 42.73 ▼0.60 |
Dashboard /wp-admin | 2,369 ▲192 | 6.11 ▲0.46 | 117.72 ▲20.73 | 37.03 ▼5.67 |
Posts /wp-admin/edit.php | 2,297 ▲194 | 3.41 ▲1.41 | 46.08 ▲4.60 | 30.35 ▼10.93 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.78 ▲0.72 | 659.98 ▼34.23 | 36.56 ▼16.92 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.12 ▼0.03 | 82.78 ▼32.36 | 46.98 ▼3.10 |
My Categories /wp-admin/admin.php?page=my-categories | 1,109 | 3.19 | 45.55 | 59.05 |
Advertisement /wp-admin/admin.php?page=private-advertisement | 1,251 | 3.21 | 52.41 | 56.77 |
My Ads /wp-admin/admin.php?page=my-ads | 1,155 | 3.19 | 41.50 | 31.00 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/private-ad/private_ad.php+282
Undefined variable: first_ad_code
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > Notice in wp-content/plugins/private-ad/private_ad.php+282
Undefined variable: first_ad_code
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > User notice in wp-includes/functions.php+5905
Function is_single was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/admin.php?page=my-ads
- > Notice in wp-content/plugins/private-ad/advertisement_view/my_ads.php+150
Undefined variable: id
SRP 0% 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/private-ad/private_ad.php
- > /wp-content/plugins/private-ad/advertisement_view/firstview_of_ad.php
- > /wp-content/plugins/private-ad/advertisement_view/my_ads.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/private-ad/advertisement_view/categories.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/private-ad/advertisement_view/firstview_of_ad.php:251
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > Network (severe)
wp-content/plugins/private-ad/assets/private_ad_css/advertisement.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > Network (severe)
wp-content/plugins/private-ad/assets/private_ad_js/advertisement.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=my-ads
- > Network (severe)
wp-content/plugins/private-ad/assets/projs/proicon.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the screenshot of the advertisement tab (Screenshot-1.png).), #2 (This is the screenshot of the categories tab ( Screenshot-2.png).), #3 (This is the screenshot of my ads tab (Screenshot-3.png).), #4 (This is the screenshot of the preview of your ad (Screenshot-4.png).), #5 (This is the screenshot of dropdown categories (Screenshot-5.png).)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Contributors: Plugin contributors not specified
private-ad/private_ad.php 85% from 13 tests
Analyzing the main PHP file in "Private Ad" version 1.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("private-ad.php" instead of "private_ad.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin868 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 180 | 51 | 851 |
JavaScript | 2 | 2 | 6 | 16 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
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 are no PNG files in this plugin