Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲14.99ms] Passed 4 tests
An overview of server-side resources used by PayPal Yearly Subscription
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 52.86 ▲10.94 |
Dashboard /wp-admin | 3.45 ▲0.14 | 60.50 ▲8.69 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 67.10 ▲21.10 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 106.82 ▲20.67 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 53.72 ▲19.64 |
PayPal Yearly Subs. /wp-admin/options-general.php?page=PayPalYearlySubscription | 3.34 | 46.59 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_yearly_subscriptions |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by PayPal Yearly Subscription
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.39 ▼0.99 | 1.62 ▼0.34 | 42.13 ▼4.66 |
Dashboard /wp-admin | 2,210 ▲25 | 4.83 ▼1.23 | 95.23 ▼18.65 | 40.60 ▼7.65 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 39.88 ▲4.21 | 36.71 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 17.85 ▼3.25 | 599.65 ▼70.26 | 66.74 ▲15.45 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.22 ▲0.03 | 95.40 ▼2.61 | 42.81 ▼2.57 |
PayPal Yearly Subs. /wp-admin/options-general.php?page=PayPalYearlySubscription | 1,216 | 2.07 | 22.65 | 33.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_yearly_subscriptions
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/paypal-yearly-subscription/paypal-yearly-subscription.php on line 93
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paypal-yearly-subscription/paypal-yearly-subscription.php on line 173
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/paypal-yearly-subscription/paypal-yearly-subscription.php on line 173
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/paypal-yearly-subscription/paypal-yearly-subscription.php on line 173
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== paypal-yearly-subscription ===
)
paypal-yearly-subscription/paypal-yearly-subscription.php Passed 13 tests
The principal PHP file in "PayPal Yearly Subscription" v. 0.1 is loaded by WordPress automatically on each request
69 characters long description:
A very basic plugin to add yearly subscription to a wordpress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected634 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 111 | 240 | 615 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin