Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.56MB] [CPU: ▼12.81ms] Passed 4 tests
Analyzing server-side resources used by Zedna Partners Banners
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.40 ▲8.19 |
Dashboard /wp-admin | 3.49 ▲0.15 | 74.20 ▲16.13 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.16 ▲3.90 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.62 | 36.76 ▼68.74 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 38.09 ▲5.40 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=partnersbanner | 3.33 | 46.72 |
Partner banners /wp-admin/edit.php?post_type=partnersbanner | 3.39 | 38.90 |
Add New /wp-admin/post-new.php?post_type=partnersbanner | 3.26 | 34.93 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_widget-partners-banners |
category_children |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Zedna Partners Banners
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.15 ▼1.59 | 2.12 ▲0.44 | 43.00 ▲0.38 |
Dashboard /wp-admin | 2,237 ▲49 | 4.86 ▼0.06 | 109.57 ▼3.33 | 38.42 ▲1.64 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▲0.01 | 39.16 ▼1.19 | 36.02 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,545 ▲1 | 23.25 ▲4.89 | 680.34 ▲66.40 | 50.36 ▼1.17 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.16 ▼0.04 | 93.02 ▼10.44 | 43.34 ▲0.04 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=partnersbanner | 1,471 | 2.15 | 27.30 | 31.48 |
Partner banners /wp-admin/edit.php?post_type=partnersbanner | 1,121 | 1.96 | 32.80 | 28.71 |
Add New /wp-admin/post-new.php?post_type=partnersbanner | 1,912 | 4.00 | 68.83 | 38.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method partners_banners_widgets::uninstall() should not be called statically
- This plugin did not uninstall successfully, leaving 8 options in the database
- category_children
- theysaidso_admin_options
- widget_widget-partners-banners
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=partnersbanner
- > Notice in wp-content/plugins/partners-banners/partners-banners.php+124
Undefined index: partner_meta_box_nonce
- > GET request to /wp-admin/post-new.php?post_type=partnersbanner
- > Notice in wp-content/plugins/partners-banners/partners-banners.php+197
Undefined variable: post
- > GET request to /wp-admin/post-new.php?post_type=partnersbanner
- > Notice in wp-content/plugins/partners-banners/partners-banners.php+197
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=partnersbanner
- > User notice in wp-includes/functions.php+5905
Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
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 items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/partners-banners/partners-banners.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/partners-banners/templates/partners-banners-layout.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/partners-banners/inc/widget-partners-banners.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: link, ads, partners, banners, logo
partners-banners/partners-banners.php Passed 13 tests
The main PHP file in "Zedna Partners Banners" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Display partners banners in widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin533 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 131 | 149 | 452 |
PO File | 1 | 36 | 0 | 81 |
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.28 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin