Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.38ms] Passed 4 tests
Server-side resources used by Zesty Custom Post Types for Paid Memberships Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.16 ▼4.18 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.35 ▼0.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.38 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 99.13 ▼12.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.97 ▲3.26 |
Help /wp-admin/admin.php?page=zpmpro_help | 3.23 | 32.73 |
More Plugins /wp-admin/admin.php?page=zpmpro_plugins | 3.23 | 33.59 |
Options /wp-admin/admin.php?page=zpmpro_options | 3.23 | 33.47 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Zesty Custom Post Types for Paid Memberships Pro: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲124 | 13.16 ▼1.40 | 5.00 ▲2.48 | 38.81 ▼10.55 |
Dashboard /wp-admin | 2,259 ▲71 | 5.87 ▲0.99 | 99.97 ▼4.69 | 39.48 ▼0.72 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.03 ▼0.00 | 40.33 ▼3.07 | 37.15 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,567 ▲48 | 23.39 ▲0.09 | 597.07 ▼109.74 | 50.33 ▼7.47 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.23 ▲0.05 | 97.23 ▼9.98 | 42.11 ▼3.03 |
Help /wp-admin/admin.php?page=zpmpro_help | 928 | 2.01 | 29.07 | 43.74 |
More Plugins /wp-admin/admin.php?page=zpmpro_plugins | 894 | 1.89 | 24.93 | 24.20 |
Options /wp-admin/admin.php?page=zpmpro_options | 869 | 1.88 | 26.02 | 18.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/plugin.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/ajax/options-ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/init/enqueue.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/admin/admin-nav-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/admin/admin-nav-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/admin/admin-nav-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/admin/admin-nav-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zesty-custom-post-types-for-paid-memberships-pro/admin/admin-side-menu.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: custom post types, restrict, paid memberships pro, pmpro, membership
zesty-custom-post-types-for-paid-memberships-pro/plugin.php 77% from 13 tests
The principal PHP file in "Zesty Custom Post Types for Paid Memberships Pro" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zesty-custom-post-types-for-paid-memberships-pro.php" instead of "plugin.php")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected355 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 48 | 11 | 225 |
CSS | 2 | 20 | 11 | 76 |
JavaScript | 2 | 14 | 6 | 34 |
Markdown | 1 | 11 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
8 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/step-2.png | 10.47KB | 2.77KB | ▼ 73.49% |
images/logo-med.png | 22.29KB | 9.45KB | ▼ 57.62% |
images/step-1.png | 34.32KB | 12.87KB | ▼ 62.50% |
images/wp-courses-banner.png | 26.72KB | 10.98KB | ▼ 58.88% |
images/zesty-emails-logo-white-sm.png | 1.04KB | 0.98KB | ▼ 5.28% |