Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼291.02ms] Passed 4 tests
This is a short check of server-side resources used by Post and Page Specific Product Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 58.78 ▲8.04 |
Dashboard /wp-admin | 3.49 ▲0.09 | 61.07 ▲19.50 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.96 ▲1.11 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 97.84 ▼1,180.47 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 32.32 ▲7.23 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 2 new options
New WordPress options |
---|
papspa_settings |
papspa_version |
Browser metrics Passed 4 tests
A check of browser resources used by Post and Page Specific Product Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲83 | 15.70 ▼0.02 | 6.85 ▲0.15 | 2.89 ▲0.84 |
Dashboard /wp-admin | 2,905 ▲47 | 6.15 ▼0.10 | 122.48 ▼15.11 | 161.31 ▼2.84 |
Posts /wp-admin/edit.php | 2,680 ▼8 | 3.24 ▲0.00 | 98.67 ▲32.85 | 161.05 ▲12.16 |
Add New Post /wp-admin/post-new.php | 1,779 ▲21 | 22.04 ▲0.72 | 448.83 ▼39.42 | 164.28 ▼56.12 |
Media Library /wp-admin/upload.php | 1,708 ▲13 | 5.48 ▲0.02 | 150.47 ▼2.26 | 197.83 ▼36.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 2 options in the database
- papspa_settings
- papspa_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/post-and-page-specific-product-ads/templates/shortcode_ad-vertical.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-and-page-specific-product-ads/includes/class-papspa-widget.php:10
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/post-and-page-specific-product-ads/includes/views/papspa_metabox.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'PAPSPA' not found in wp-content/plugins/post-and-page-specific-product-ads/admin/class-papspa-admin.php:10
- > PHP Fatal error
Uncaught Error: Class 'PAPSPA' not found in wp-content/plugins/post-and-page-specific-product-ads/public/class-papspa-public.php:10
- > PHP Fatal error
Uncaught Error: Class 'PAPSPA' not found in wp-content/plugins/post-and-page-specific-product-ads/admin/class-papspa-settings.php:10
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/post-and-page-specific-product-ads/includes/views/papspa_category_form.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/post-and-page-specific-product-ads/includes/views/papspa_metabox.php:14
- > PHP Notice
Undefined variable: link in wp-content/plugins/post-and-page-specific-product-ads/templates/widget_ad.php on line 11
- > PHP Notice
Undefined variable: type in wp-content/plugins/post-and-page-specific-product-ads/includes/views/papspa_metabox.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
post-and-page-specific-product-ads/post-and-page-specific-product-ads.php 92% from 13 tests
"Post and Page Specific Product Ads" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4.0" instead of "3.0.0")
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
Good job! No executable or dangerous file extensions detected2,166 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 187 | 761 | 1,604 |
CSS | 3 | 34 | 8 | 326 |
PO File | 1 | 62 | 74 | 160 |
JavaScript | 2 | 8 | 0 | 76 |
PHP code Passed 2 tests
An overview 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.60 |
Average class complexity | 49.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 6.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 4 | 4.60% |
▷ Public methods | 82 | 94.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.75% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG images were not found in this plugin