Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲2.95ms] Passed 4 tests
An overview of server-side resources used by Noti - Activity Notification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 45.95 ▲10.17 |
Dashboard /wp-admin | 4.00 ▲0.66 | 56.53 ▼2.58 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 51.09 ▲5.12 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.89 | 92.81 ▲2.33 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 42.71 ▲6.94 |
Server storage [IO: ▲0.50MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
noti_event_type_cat_children |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
noti-version |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Noti - Activity Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 13.65 ▼0.75 | 4.55 ▲2.97 | 43.67 ▲4.45 |
Dashboard /wp-admin | 2,260 ▲69 | 5.83 ▲0.96 | 100.71 ▼0.09 | 36.61 ▼7.15 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.02 ▼0.09 | 36.18 ▲0.77 | 32.30 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.45 ▲0.19 | 663.53 ▼5.89 | 50.92 ▲0.47 |
Media Library /wp-admin/upload.php | 1,449 ▲67 | 4.44 ▲0.27 | 97.37 ▼1.14 | 42.95 ▼1.05 |
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 uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- noti_event_type_cat_children
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'Vectorface\\Whip\\IpRange\\IpRange' not found in wp-content/plugins/noti-activity-notification/vendor/whip/IpRange/Ipv6Range.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Vectorface\\Whip\\IpRange\\IpRange' not found in wp-content/plugins/noti-activity-notification/vendor/whip/IpRange/Ipv4Range.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Vectorface\\Whip\\Request\\RequestAdapter' not found in wp-content/plugins/noti-activity-notification/vendor/whip/Request/Psr7RequestAdapter.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/noti-activity-notification/vendor/psr-http-message/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Vectorface\\Whip\\Request\\RequestAdapter' not found in wp-content/plugins/noti-activity-notification/vendor/whip/Request/SuperglobalRequestAdapter.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/noti-activity-notification/vendor/psr-http-message/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/noti-activity-notification/vendor/psr-http-message/ServerRequestInterface.php:43
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: user activity, tracking, audit log, notifications
noti-activity-notification/noti-activity-notification.php 85% from 13 tests
The main PHP script in "Noti - Activity Notification" version 0.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/lang/" does not exist
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
There were no executable files found in this plugin6,124 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,467 | 3,747 | 4,888 |
JSON | 26 | 0 | 0 | 664 |
JavaScript | 2 | 56 | 76 | 482 |
CSS | 1 | 8 | 0 | 60 |
SQL | 1 | 2 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 337 | |
▷ Static methods | 91 | 27.00% |
▷ Public methods | 209 | 62.02% |
▷ Protected methods | 107 | 31.75% |
▷ Private methods | 21 | 6.23% |
Functions | 31 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 31 | 100.00% |
Constants | 25 | |
▷ Global constants | 4 | 16.00% |
▷ Class constants | 21 | 84.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin