Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/new-post-in-category-notifier/post_in_tag_notifier.php+47
Undefined variable: id
Server metrics [RAM: ▲0.02MB] [CPU: ▼137.88ms] Passed 4 tests
This is a short check of server-side resources used by New Post In Category Notifier
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 37.76 ▲0.65 |
Dashboard /wp-admin | 3.09 ▲0.04 | 56.63 ▲8.31 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 50.05 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 98.43 ▼554.49 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.45 ▲0.35 |
New Post In Tag Options /wp-admin/options-general.php?page=notify_options_id | 3.00 | 29.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, no new options
New tables |
---|
wp_postintagnotify |
Browser metrics Passed 4 tests
An overview of browser requirements for New Post In Category Notifier
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.26 ▲0.72 | 11.64 ▲1.76 | 47.19 ▼4.94 |
Dashboard /wp-admin | 2,975 ▲44 | 5.97 ▼0.07 | 146.55 ▼31.01 | 109.56 ▲1.71 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 68.04 ▼5.32 | 86.72 ▲4.84 |
Add New Post /wp-admin/post-new.php | 1,618 ▼65 | 21.37 ▲2.63 | 305.20 ▼130.71 | 107.30 ▼6.72 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.01 | 153.69 ▲8.11 | 115.54 ▼7.68 |
New Post In Tag Options /wp-admin/options-general.php?page=notify_options_id | 1,051 | 2.06 | 55.75 | 68.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_postintagnotify
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/new-post-in-category-notifier/post_in_tag_notifier.php:135
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: email, notify
new-post-in-category-notifier/post_in_tag_notifier.php 92% from 13 tests
The primary PHP file in "New Post In Category Notifier" version 0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("new-post-in-category-notifier.php" instead of "post_in_tag_notifier.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin112 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 8 | 112 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
There were not PNG files found in your plugin