Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.36ms] Passed 4 tests
Analyzing server-side resources used by Post Notifier
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 36.94 ▲12.84 |
Dashboard /wp-admin | 3.11 ▲0.06 | 48.97 ▲1.23 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 50.72 ▲0.77 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 97.22 ▼561.51 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 34.13 ▼5.94 |
Post Notifier /wp-admin/options-general.php?page=post_notifier | 3.02 | 31.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
post_notifier_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Post Notifier
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲89 | 15.91 ▲0.13 | 8.67 ▼2.49 | 47.96 ▼6.10 |
Dashboard /wp-admin | 2,972 ▲41 | 6.02 ▲0.09 | 137.44 ▼20.53 | 123.15 ▲14.79 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 72.91 ▲2.62 | 95.13 ▲8.86 |
Add New Post /wp-admin/post-new.php | 3,639 ▲1,956 | 14.96 ▼3.23 | 452.10 ▲76.57 | 121.42 ▲7.29 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▼0.03 | 163.03 ▲9.77 | 124.57 ▼5.46 |
Post Notifier /wp-admin/options-general.php?page=post_notifier | 1,076 | 2.05 | 58.44 | 76.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-notifier/post-notifier.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: mail
post-notifier/post-notifier.php Passed 13 tests
The main PHP file in "Post Notifier" ver. 0.5.0 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Send information to the specified e-mail address when the post published.
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
No dangerous file extensions were detected258 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 78 | 224 |
PO File | 1 | 11 | 13 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin