Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.15ms] Passed 4 tests
A check of server-side resources used by Extra Styling for MemberPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 43.05 ▲4.48 |
Dashboard /wp-admin | 3.51 ▲0.20 | 46.21 ▼0.50 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.14 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 81.89 ▼3.44 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.54 ▲5.25 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Extra Styling for MemberPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.26 ▼0.31 | 2.00 ▲0.33 | 44.61 ▲3.70 |
Dashboard /wp-admin | 2,226 ▲45 | 5.56 ▼0.06 | 82.57 ▼14.26 | 47.18 ▲6.56 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.13 ▲0.14 | 35.76 ▼4.49 | 42.59 ▲3.06 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.27 ▲0.16 | 648.70 ▼40.14 | 55.95 ▲3.23 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.20 ▼0.19 | 97.97 ▼12.84 | 52.44 ▲6.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/extra-styling-for-memberpress/public/partials/rswmpstyling-public-display.php
- > /wp-content/plugins/extra-styling-for-memberpress/admin/partials/rswmpstyling-admin-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extra-styling-for-memberpress/customizer/rswmpstyling-customizer.php:853
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/extra-styling-for-memberpress/customizer/inc/class-customizer-range-value-control/class-customizer-range-value-control.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extra-styling-for-memberpress/customizer/rswmpstyling-customizer-css.php:668
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/extra-styling-for-memberpress/public/inc-rswmpstyling-public-styles.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: registration, customizer, styling, readsteadywebsites, sign up...
extra-styling-for-memberpress/rswmpstyling.php 77% from 13 tests
"Extra Styling for MemberPress" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("extra-styling-for-memberpress.php" instead of "rswmpstyling.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin1,689 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 363 | 619 | 1,463 |
PO File | 1 | 33 | 54 | 82 |
CSS | 2 | 15 | 32 | 68 |
Markdown | 1 | 24 | 0 | 50 |
JavaScript | 2 | 9 | 32 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 1.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin