Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.46ms] Passed 4 tests
Analyzing server-side resources used by Comment Admin Notifier
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.98 ▲1.15 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.59 ▼12.19 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.46 ▼1.97 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.40 ▼4.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.92 ▲3.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comment Admin Notifier
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.18 ▼0.38 | 1.73 ▲0.21 | 44.37 ▲3.46 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.05 | 84.53 ▼2.64 | 39.71 ▲1.29 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 36.29 ▲1.55 | 31.69 ▼7.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.09 ▼0.38 | 640.49 ▼42.84 | 53.02 ▼8.21 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▲0.02 | 96.03 ▼4.66 | 45.42 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: admin, discussion, alert, email, notification...
comment-admin-notifier/comment-admin-notifier.php Passed 13 tests
The principal PHP file in "Comment Admin Notifier" v. 1.1.3 is loaded by WordPress automatically on each request
114 characters long description:
Enables admin users to be notified about all new published comments (even if they're not the authors of the posts)
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
Good job! No executable or dangerous file extensions detected242 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 133 | 393 | 242 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 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 | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin