Benchmarks
Plugin footprint 58% 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
- This plugin did not install gracefully
- > Warning in wp-content/plugins/rybons-coupon/RybonsCoupon_Plugin.php+29
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.16MB] [CPU: ▼144.52ms] Passed 4 tests
An overview of server-side resources used by RybonsCoupon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 40.04 ▲5.00 |
Dashboard /wp-admin | 3.27 ▲0.21 | 48.56 ▼1.76 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 34.47 ▼14.42 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 94.48 ▼564.10 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 37.87 ▲2.22 |
RybonsCoupon /wp-admin/plugins.php?page=RybonsCoupon_PluginSettings | 3.22 | 35.66 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 4 new options
New WordPress options |
---|
RybonsCoupon_Plugin_rybonsCouponMerchantKey |
RybonsCoupon_Plugin__version |
RybonsCoupon_Plugin_rybonsCouponConnectionMode |
RybonsCoupon_Plugin__installed |
Browser metrics Passed 4 tests
An overview of browser requirements for RybonsCoupon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.26 ▲0.44 | 10.44 ▲1.58 | 50.92 ▼3.39 |
Dashboard /wp-admin | 2,972 ▲38 | 5.88 ▼0.06 | 144.64 ▼6.12 | 123.26 ▼4.58 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.69 ▲0.01 | 71.20 ▲4.00 | 100.36 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,597 ▼7 | 18.78 ▼0.01 | 380.08 ▼12.54 | 117.49 ▲7.46 |
Media Library /wp-admin/upload.php | 1,812 ▲8 | 5.01 ▲0.03 | 164.95 ▲11.95 | 121.36 ▼10.62 |
RybonsCoupon /wp-admin/plugins.php?page=RybonsCoupon_PluginSettings | 1,143 | 2.08 | 63.81 | 85.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 4 options
- RybonsCoupon_Plugin__installed
- RybonsCoupon_Plugin__version
- RybonsCoupon_Plugin_rybonsCouponMerchantKey
- RybonsCoupon_Plugin_rybonsCouponConnectionMode
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rybons-coupon/rybonscoupon.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI found ("")
rybons-coupon/rybonscoupon.php 85% from 13 tests
The main file in "RybonsCoupon" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rybons-coupon.php" instead of "rybonscoupon.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin706 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 191 | 549 | 706 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 60.24% |
▷ Protected methods | 28 | 33.73% |
▷ Private methods | 5 | 6.02% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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