Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.36MB] [CPU: ▲6.35ms] Passed 4 tests
Analyzing server-side resources used by WPCOM Member
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.37 | 51.71 ▲8.44 |
Dashboard /wp-admin | 4.67 ▲1.36 | 56.41 ▲6.11 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 59.71 ▲9.53 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.37 | 99.45 ▲1.30 |
Media Library /wp-admin/upload.php | 4.59 ▲1.36 | 47.83 ▲12.60 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPCOM Member
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,182 ▲395 | 13.95 ▼0.44 | 13.31 ▲11.34 | 40.28 ▼3.12 |
Dashboard /wp-admin | 2,212 ▲38 | 5.62 ▲0.03 | 94.04 ▲7.23 | 46.38 ▲4.74 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.94 ▼0.03 | 38.40 ▼0.00 | 40.58 ▲8.98 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.53 ▼4.59 | 599.74 ▼25.11 | 66.81 ▲4.81 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.19 ▼0.09 | 97.87 ▲3.89 | 47.29 ▲6.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wpcom_get_cover_url() in wp-content/plugins/wpcom-member/templates/user-card.php:2
- > PHP Notice
Undefined variable: is_bind in wp-content/plugins/wpcom-member/templates/social-login-connect.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wpcom-member/templates/social-login-connect.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
1 plugin tags: membership
wpcom-member/index.php 92% from 13 tests
The main PHP script in "WPCOM Member" version 1.3.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpcom-member.php" instead of "index.php")
Code Analysis 97% from 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 plugin8,314 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 627 | 98 | 7,141 |
PO File | 2 | 1,071 | 2,140 | 1,125 |
JavaScript | 5 | 1 | 9 | 35 |
SVG | 8 | 0 | 0 | 8 |
CSS | 5 | 0 | 8 | 5 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 224.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 701.00 |
Average method complexity | 9.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 14 | 8.64% |
▷ Public methods | 151 | 93.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 6.79% |
Functions | 94 | |
▷ Named functions | 90 | 95.74% |
▷ Anonymous functions | 4 | 4.26% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lazy.png | 0.94KB | 0.08KB | ▼ 91.30% |