Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.88ms] Passed 4 tests
A check of server-side resources used by WPJ Reports for MemberPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.83 ▲2.02 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.22 ▼19.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.22 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.04 ▼18.49 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.63 ▲3.45 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WPJ Reports for MemberPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.25 ▼0.26 | 1.65 ▼0.10 | 38.32 ▼4.93 |
Dashboard /wp-admin | 2,198 ▲20 | 5.61 ▼0.10 | 94.90 ▼24.19 | 42.32 ▼2.29 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.11 | 38.94 ▼2.26 | 32.09 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.57 ▲0.36 | 600.31 ▼45.54 | 56.85 ▼6.63 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.00 | 98.94 ▲0.98 | 41.70 ▼0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 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 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pro-reports-for-memberpress/admin/controller.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pro-reports-for-memberpress/admin/resources.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: reports, membership, addon, memberpress
pro-reports-for-memberpress/wpj-reports.php 77% from 13 tests
The main PHP script in "WPJ Reports for MemberPress" version 1.5 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pro-reports-for-memberpress.php" instead of "wpj-reports.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 230 characters long)
- 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,904 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 129 | 122 | 1,129 |
CSS | 5 | 86 | 14 | 564 |
PHP | 6 | 47 | 56 | 196 |
Markdown | 1 | 11 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 7 | |
▷ Named functions | 7 | 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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/DataTables-1.11.3/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/css/DataTables-1.11.3/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/css/DataTables-1.11.3/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/css/DataTables-1.11.3/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/css/DataTables-1.11.3/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |