Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.43ms] Passed 4 tests
Analyzing server-side resources used by Email Notification On Comment Approval
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.35 ▼0.10 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.81 ▼5.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.14 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.38 ▼20.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.79 ▲4.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
enocp_subject |
enocp_email_content |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
enocp_cc |
enocp_from |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Email Notification On Comment Approval
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.28 ▼0.10 | 1.68 ▼0.06 | 41.25 ▼0.21 |
Dashboard /wp-admin | 2,211 ▲33 | 5.56 ▼0.15 | 86.99 ▼14.33 | 40.04 ▼0.47 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▲0.01 | 36.84 ▲0.19 | 34.81 ▼10.63 |
Add New Post /wp-admin/post-new.php | 1,539 ▲9 | 23.02 ▲0.01 | 665.59 ▼33.03 | 56.91 ▲0.87 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.21 ▲0.04 | 107.09 ▲3.74 | 48.36 ▲3.30 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- can_compress_scripts
- enocp_email_content
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- enocp_from
- enocp_subject
- db_upgraded
- enocp_cc
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 take a closer look at the following
- 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-notification-on-comment-approval/email-notification-on-comment-approval.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: comments, approval, email, notification
email-notification-on-comment-approval/email-notification-on-comment-approval.php Passed 13 tests
The main PHP file in "Email Notification On Comment Approval" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
This Plugin Notifies a comment author by email on approval of his/her comment.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin141 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 23 | 141 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 images were found in this plugin