Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/noadpl-paypal-widget/noad-paypal-widget.php+143
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼61.87ms] Passed 4 tests
A check of server-side resources used by NoAd.pl Paypal Widget Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.02 ▼40.36 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.25 ▼51.92 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.83 ▼60.53 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.97 ▼94.68 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 6.06 ▼35.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_wp_my_plugin |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for NoAd.pl Paypal Widget Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼11 | 13.62 ▼1.18 | 1.78 ▼0.26 | 44.37 ▼10.55 |
Dashboard /wp-admin | 2,206 ▼3 | 5.86 ▼0.00 | 107.66 ▼2.23 | 43.68 ▲0.15 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▲0.00 | 40.60 ▲1.45 | 35.18 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.08 ▲4.52 | 698.74 ▲47.01 | 51.35 ▲1.47 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.03 | 97.30 ▼4.89 | 43.26 ▼0.30 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/noadpl-paypal-widget/noad-paypal-widget.php+143
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_wp_my_plugin
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/noadpl-paypal-widget/noad-paypal-widget.php:143
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: integration, widget, balance, goal, customizable...
noadpl-paypal-widget/noad-paypal-widget.php 85% from 13 tests
The primary PHP file in "NoAd.pl Paypal Widget Plugin" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("noadpl-paypal-widget.php" instead of "noad-paypal-widget.php")
- Description: The description should be shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin158 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 98 | 158 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
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