Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.09ms] Passed 4 tests
An overview of server-side resources used by Email Post Approval
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.09 ▼1.80 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.52 ▼4.67 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 46.20 ▼2.79 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 90.78 ▼3.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.44 ▲0.64 |
Email Post Approval /wp-admin/options-general.php?page=email-post-approval | 3.26 | 37.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options |
---|
epa_post_statuses |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
epa_email_fields |
epa_send_to |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Email Post Approval
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.06 | 1.75 ▲0.03 | 45.45 ▲2.05 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.16 | 111.46 ▲2.67 | 42.03 ▼4.97 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.07 | 40.41 ▼8.16 | 34.95 ▼5.46 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.45 ▼4.78 | 602.95 ▼58.34 | 56.69 ▲4.22 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.23 ▲0.05 | 97.59 ▼0.35 | 43.34 ▼1.31 |
Email Post Approval /wp-admin/options-general.php?page=email-post-approval | 947 | 2.02 | 28.92 | 27.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/email-post-approval/email-post-approval.php:47
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: email, publishing, review, post approval
email-post-approval/email-post-approval.php Passed 13 tests
The main file in "Email Post Approval" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Review and approve posts for publishing right from your inbox
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin323 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 193 | 195 | 323 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 3 | 23.08% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin