Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/mediapay-micropaiement/inc/yd-widget-framework.inc.php+200
syntax error, unexpected '&'
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.67ms] Passed 4 tests
A check of server-side resources used by YD Media-Pay WP Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.31 ▼4.62 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.51 ▼13.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.09 ▼2.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.04 ▼10.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.04 ▼1.97 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 262 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YD Media-Pay WP Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼1.20 | 4.32 ▲2.57 | 39.87 ▲2.13 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▼0.00 | 98.92 ▼4.77 | 39.64 ▼2.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.01 | 42.13 ▼0.27 | 34.40 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.41 ▲0.03 | 607.82 ▼9.68 | 54.30 ▲6.24 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▼0.04 | 97.52 ▼5.22 | 40.69 ▼6.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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)
Good news, no errors were detected
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 take a closer look at the following
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/mediapay-micropaiement/inc/mediapay-validate-api.php:18
- > PHP Parse error
syntax error, unexpected '&' in wp-content/plugins/mediapay-micropaiement/inc/mediapay.inc.php on line 424
- > PHP Notice
Undefined variable: debug in wp-content/plugins/mediapay-micropaiement/inc/mediapay-phonenumber-api.inc.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/mediapay-micropaiement/inc/display-settings.inc.php:9
- > PHP Notice
Undefined variable: debug in wp-content/plugins/mediapay-micropaiement/inc/mediapay-validate-api.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/mediapay-micropaiement/inc/mediapay-phonenumber-api.inc.php:24
- > PHP Parse error
syntax error, unexpected '&' in wp-content/plugins/mediapay-micropaiement/inc/yd-widget-framework.inc.php on line 200
- > PHP Parse error
syntax error, unexpected '&' in wp-content/plugins/mediapay-micropaiement/inc/yd-widget-framework.inc.php on line 200
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
mediapay-micropaiement/yd-mediapay-wp-plugin.php 85% from 13 tests
The main PHP file in "YD Media-Pay WP Plugin" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mediapay-micropaiement.php" instead of "yd-mediapay-wp-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,509 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 160 | 233 | 1,319 |
PO File | 2 | 47 | 62 | 116 |
CSS | 1 | 16 | 1 | 74 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 39.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 84.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 15.69% |
Functions | 1 | |
▷ Named functions | 1 | 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 are no PNG files in this plugin