Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/notifications-for-serverchan/notifications-for-serverchan.php+19
The use statement with non-compound name 'ServerChan' has no effect
Server metrics [RAM: ▼0.00MB] [CPU: ▼4.43ms] Passed 4 tests
Server-side resources used by Notifications For ServerChan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 46.81 ▲10.65 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.86 ▼12.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.22 ▲1.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.11 ▼5.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.05 ▼1.39 |
Notifications For ServerChan /wp-admin/options-general.php?page=notifications_for_serverchan | 3.18 | 28.15 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Notifications For ServerChan
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.21 ▼1.20 | 4.73 ▲3.06 | 42.77 ▲2.06 |
Dashboard /wp-admin | 2,210 ▲18 | 5.84 ▲0.89 | 107.82 ▲2.31 | 41.57 ▲0.08 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.03 ▲0.04 | 39.49 ▲4.75 | 35.58 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 22.70 ▼0.40 | 659.42 ▼6.00 | 56.58 ▲3.25 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.21 ▲0.00 | 94.24 ▼5.11 | 44.75 ▲0.18 |
Notifications For ServerChan /wp-admin/options-general.php?page=notifications_for_serverchan | 795 | 2.06 | 23.96 | 35.53 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=notifications_for_serverchan
- > Notice in wp-content/plugins/notifications-for-serverchan/admin/init.php+63
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-serverchan/admin/init.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-serverchan/admin/init.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-serverchan/events/user.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-serverchan/events/user.php:2
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: notification
notifications-for-serverchan/notifications-for-serverchan.php Passed 13 tests
The main PHP file in "Notifications For ServerChan" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
A Notifications Plugin For ServerChan
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin122 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 36 | 12 | 122 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
No PNG files were detected