Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼146.42ms] Passed 4 tests
A check of server-side resources used by Admin Post Notifier
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 47.14 ▲10.43 |
Dashboard /wp-admin | 3.11 ▲0.06 | 52.05 ▼5.03 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 55.45 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 100.73 ▼579.81 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 38.96 ▼1.23 |
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: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admin Post Notifier
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.81 ▲0.24 | 14.77 ▲3.30 | 49.50 ▼2.98 |
Dashboard /wp-admin | 2,967 ▲33 | 5.93 ▼0.11 | 167.53 ▼6.35 | 125.23 ▲0.59 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 75.04 ▲1.75 | 99.20 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 16.19 ▲0.08 | 418.60 ▼17.68 | 119.26 ▲1.67 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.09 ▲0.07 | 168.41 ▼12.97 | 124.44 ▼12.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/admin-post-notifier/admin-post-notifier.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'AdminPostNotifier\\Admin' not found in wp-content/plugins/admin-post-notifier/src/Notifications.php:9
- > PHP Fatal error
Uncaught Error: Class 'AdminPostNotifier\\Base' not found in wp-content/plugins/admin-post-notifier/src/Admin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: admin, email, post, notifications, review
admin-post-notifier/admin-post-notifier.php 92% from 13 tests
"Admin Post Notifier" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("5.3" instead of "7.4.13")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin434 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 106 | 202 | 414 |
JSON | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 31 | |
▷ Static methods | 6 | 19.35% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.45% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin