Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▲0.04ms] Passed 4 tests
This is a short check of server-side resources used by SpruceJoy Membership - Content Restriction, Ad-Free, Paid & Free Member Subscriptions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.02 ▼2.39 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.30 ▼2.23 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.06 ▲4.71 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.77 ▲2.13 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.39 ▲2.63 |
SpruceJoy Membership /wp-admin/options-general.php?page=wpsjmembership-settings | 3.25 | 30.96 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
wpsjmembership_site_id |
widget_recent-posts |
widget_recent-comments |
wpsjmembership_settings |
theysaidso_admin_options |
db_upgraded |
wpsjmembership_integration_state |
Browser metrics Passed 4 tests
Checking browser requirements for SpruceJoy Membership - Content Restriction, Ad-Free, Paid & Free Member Subscriptions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲52 | 13.18 ▼1.40 | 1.66 ▼1.12 | 40.98 ▼7.79 |
Dashboard /wp-admin | 2,209 ▲21 | 5.84 ▲0.78 | 97.05 ▼8.89 | 44.52 ▲2.75 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.99 ▼0.06 | 39.84 ▲2.63 | 34.25 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 22.93 ▲5.29 | 674.31 ▼67.38 | 50.44 ▼7.87 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.25 ▲0.11 | 108.14 ▼8.17 | 46.94 ▲2.01 |
SpruceJoy Membership /wp-admin/options-general.php?page=wpsjmembership-settings | 915 | 1.95 | 29.21 | 44.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 ([TO BE ADD]) image required
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
sprucejoy-membership/wp-sprucejoy-membership.php 77% from 13 tests
The primary PHP file in "SpruceJoy Membership - Content Restriction, Ad-Free, Paid & Free Member Subscriptions" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sprucejoy-membership.php" instead of "wp-sprucejoy-membership.php")
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
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
Everything looks great! No dangerous files found in this plugin592 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 139 | 427 | 376 |
CSS | 1 | 12 | 15 | 119 |
Markdown | 1 | 43 | 0 | 60 |
JavaScript | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 16 | |
▷ Static methods | 3 | 18.75% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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 files were detected