Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.06MB] [CPU: ▼10.25ms] Passed 4 tests
An overview of server-side resources used by MicroPayments - Paid Author Subscriptions, Digital Assets, Downloads, Membership
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.77 ▼0.68 |
Dashboard /wp-admin | 3.46 ▲0.15 | 45.03 ▼5.87 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.20 ▼1.15 |
Add New Post /wp-admin/post-new.php | 5.27 ▼0.62 | 61.30 ▼32.17 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.93 ▼1.82 |
Documentation /wp-admin/admin.php?page=paid-membership-doc | 3.26 | 30.25 |
Transactions /wp-admin/admin.php?page=micropayments-transactions | 3.29 | 35.24 |
Settings /wp-admin/admin.php?page=paid-membership | 3.36 | 45.94 |
Server storage [IO: ▲4.84MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_vw_micropay_transactions |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
VWpaidMembershipOptions |
widget_theysaidso_widget |
vw_micropayments_db |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by MicroPayments - Paid Author Subscriptions, Digital Assets, Downloads, Membership
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲176 | 14.11 ▼0.25 | 1.90 ▲0.23 | 43.57 ▼0.88 |
Dashboard /wp-admin | 2,287 ▲110 | 5.61 ▲0.09 | 91.94 ▼11.94 | 44.98 ▼0.71 |
Posts /wp-admin/edit.php | 2,189 ▲86 | 1.95 ▲0.01 | 38.00 ▼2.66 | 36.58 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,604 ▲78 | 23.42 ▲0.34 | 692.48 ▼12.85 | 67.07 ▲10.84 |
Media Library /wp-admin/upload.php | 1,486 ▲86 | 4.28 ▲0.12 | 103.67 ▼3.68 | 47.22 ▲2.08 |
Documentation /wp-admin/admin.php?page=paid-membership-doc | 988 | 2.01 | 23.81 | 32.76 |
Transactions /wp-admin/admin.php?page=micropayments-transactions | 1,084 | 2.02 | 24.31 | 36.03 |
Settings /wp-admin/admin.php?page=paid-membership | 1,133 | 2.16 | 23.44 | 33.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_vw_micropay_transactions
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- VWpaidMembershipOptions
- vw_micropayments_db
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=paid-membership-doc
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method VWpaidMembership::adminDocs() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/paid-membership/taxonomy-collection.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/paid-membership/template-download.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Wallets: MyCred, TeraWallet (WooCommerce)), #2 (Setup paid content (post/page) as WooCommerce product.), #3 (WooCommerce product for paid content.), #4 (Control access to content by membership/role.), #5 (Users can purchase membership with credits.), #6 (Edit, Wallet, Donate to Author for selected content types.), #7 (Donate to Author dialog: select amount.), #8 (Setup donation goals, crowdfunding), #9 (Donation goal, crowdfunding on content page), #10 (Digital asset management), #11 (Upload content with Plupload)
paid-membership/paid-membership.php 85% from 13 tests
"MicroPayments - Paid Author Subscriptions, Digital Assets, Downloads, Membership" version 2.9.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 80 characters long)
- Description: Please don't use more than 140 characters for the plugin description (currently 1345 characters long)
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected13,614 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 2,614 | 733 | 8,645 |
SVG | 3 | 0 | 12 | 2,880 |
JavaScript | 4 | 270 | 291 | 978 |
PO File | 1 | 297 | 324 | 804 |
CSS | 3 | 67 | 23 | 307 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 188)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 303.40 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 735.00 |
Average method complexity | 10.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 188.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 132 | 86.27% |
▷ Public methods | 153 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.81MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-11.png | 67.04KB | 21.61KB | ▼ 67.77% |
screenshot-6.png | 52.79KB | 16.21KB | ▼ 69.30% |
interface/jquery.ui.plupload/img/plupload.png | 6.44KB | 2.99KB | ▼ 53.58% |
screenshot-5.png | 44.42KB | 19.17KB | ▼ 56.83% |
interface/jquery.ui/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |