Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.99ms] Passed 4 tests
An overview of server-side resources used by Notifications for Collapsed Admin Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.49 ▲4.37 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.07 ▼3.76 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.04 ▼1.97 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.22 ▼37.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.00 ▲3.20 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Notifications for Collapsed Admin Menu: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.27 ▼1.11 | 1.65 ▼0.26 | 40.92 ▼6.74 |
Dashboard /wp-admin | 2,211 ▲20 | 4.86 ▼0.02 | 109.15 ▲8.32 | 43.65 ▲1.59 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.01 | 40.79 ▲3.59 | 37.02 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.12 ▼2.95 | 601.94 ▼47.28 | 53.20 ▼6.81 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.25 ▲0.04 | 97.69 ▼6.10 | 42.98 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/notifications-for-collapsed-admin-menu/tests/phpunit/bootstrap.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
6 plugin tags: coffee2code, menu, collapsed, moderation, notifications...
notifications-for-collapsed-admin-menu/notifications-for-collapsed-admin-menu.php Passed 13 tests
"Notifications for Collapsed Admin Menu" version 1.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
109 characters long description:
Highlights the comments and plugins icons in the collapsed admin sidebar menu when notifications are pending.
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 detected432 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 3 | 45 | 0 | 174 |
PHP | 4 | 71 | 135 | 171 |
JavaScript | 1 | 10 | 0 | 47 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 6 | 25.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected