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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.71ms] Passed 4 tests
Analyzing server-side resources used by Email Notice for WP Document Revisions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.99 ▼0.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.49 ▼3.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.54 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.16 ▼17.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.59 ▲2.54 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 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 Email Notice for WP Document Revisions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.72 ▲0.37 | 1.83 ▲0.19 | 37.42 ▼5.68 |
Dashboard /wp-admin | 2,203 ▲22 | 5.55 ▼0.16 | 84.06 ▼14.82 | 36.73 ▼2.27 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.01 ▲0.06 | 36.81 ▼3.57 | 34.99 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,443 ▼85 | 16.92 ▼6.10 | 511.10 ▼73.78 | 27.83 ▼30.86 |
Media Library /wp-admin/upload.php | 1,414 ▲20 | 4.18 ▼0.05 | 96.61 ▼7.06 | 38.69 ▼7.28 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- 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
Everything seems fine, however 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 fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/email-notice-wp-document-revisions/uninstall.php
- > /wp-content/plugins/email-notice-wp-document-revisions/wpdr-email-notice.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-ext-user-table.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-ext-log-table.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-ext-log-table.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-ext-log-table.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-all-users-bulk-action.php:11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-ext-user-table.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-user-log-table.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-email-notice.php:11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/email-notice-wp-document-revisions/includes/class-wpdr-en-ext-user-table.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: multisite, e-mail, automatic, administration, user...
email-notice-wp-document-revisions/wpdr-email-notice.php 85% from 13 tests
The entry point to "Email Notice for WP Document Revisions" version 2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("email-notice-wp-document-revisions.php" instead of "wpdr-email-notice.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,778 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 317 | 1,386 | 2,567 |
JavaScript | 4 | 18 | 45 | 211 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 80.40 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 325.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 6 | 5.77% |
▷ Public methods | 92 | 88.46% |
▷ Protected methods | 1 | 0.96% |
▷ Private methods | 11 | 10.58% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected