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.02MB] [CPU: ▼3.43ms] Passed 4 tests
A check of server-side resources used by User Role Sync for MailPoet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.22 ▼7.60 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.58 ▼2.83 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.48 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.35 ▲0.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.57 ▲2.82 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for User Role Sync for MailPoet
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.27 ▼0.10 | 1.51 ▼0.46 | 35.25 ▼7.10 |
Dashboard /wp-admin | 2,209 ▲24 | 5.90 ▲1.00 | 95.49 ▼22.54 | 39.73 ▼4.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 40.39 ▲1.34 | 33.86 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.10 ▲4.77 | 597.79 ▼23.35 | 53.72 ▲4.44 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.20 ▼0.02 | 98.26 ▲2.20 | 43.14 ▼2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 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/mp-user-roles-sync/mp-user-roles-sync.php:81
- > 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 Passed 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
10 plugin tags: email subscription, email, autoresponder, newsletter signup, email newsletter...
mp-user-roles-sync/mp-user-roles-sync.php Passed 13 tests
This is the main PHP file of "User Role Sync for MailPoet" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Automatically creates a MailPoet list for each user role and keeps it synchronized
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 detected192 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 19 | 192 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 5.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 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 | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected