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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.73ms] Passed 4 tests
Server-side resources used by Plugin Notifier
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 43.65 ▲4.03 |
Dashboard /wp-admin | 3.09 ▲0.03 | 52.42 ▲4.40 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 47.03 ▼9.35 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.47 ▼569.77 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 39.71 ▲0.16 |
Plugin Notifier /wp-admin/tools.php?page=plugin-notifier | 3.00 | 32.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Notifier
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.88 ▲0.31 | 15.83 ▲4.20 | 52.64 ▼3.64 |
Dashboard /wp-admin | 2,975 ▲47 | 5.91 ▼0.09 | 175.01 ▲15.83 | 110.84 ▼9.04 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 75.34 ▲6.70 | 103.87 ▲4.80 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 16.25 ▼2.14 | 436.90 ▼10.78 | 121.51 ▲0.06 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.07 | 168.62 ▼3.36 | 131.40 ▲6.16 |
Plugin Notifier /wp-admin/tools.php?page=plugin-notifier | 1,065 | 2.10 | 60.10 | 66.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-install-notifier/plugin-install-notification.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-install-notifier/trunk/plugin-install-notification.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: notifications, plugins
plugin-install-notifier/plugin-install-notification.php 92% from 13 tests
The main file in "Plugin Notifier" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plugin-install-notifier.php" instead of "plugin-install-notification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin280 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 16 | 280 |
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.18 |
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 | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
PNG images were not found in this plugin