Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.66ms] Passed 4 tests
An overview of server-side resources used by WPS Notice Center
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.13 ▼1.65 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.01 ▼10.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.88 ▲2.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.96 ▼0.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.41 ▼2.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WPS Notice Center
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.23 ▼1.15 | 1.68 ▼0.64 | 43.01 ▼2.41 |
Dashboard /wp-admin | 2,254 ▲69 | 4.90 ▼0.91 | 108.12 ▲4.03 | 41.94 ▼3.72 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.22 ▲0.17 | 38.54 ▲3.42 | 37.88 ▲4.17 |
Add New Post /wp-admin/post-new.php | 1,559 ▲21 | 17.62 ▼5.81 | 666.90 ▲5.78 | 54.09 ▼2.40 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.23 ▼0.07 | 99.95 ▼3.41 | 44.20 ▼0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wps-notice-center/wps-notice-center.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'WPS\\WPS_Notice_Center\\Singleton' not found in wp-content/plugins/wps-notice-center/classes/plugin.php on line 5
- > PHP Warning
Use of undefined constant WPS_NOTICE_CENTER_DIR - assumed 'WPS_NOTICE_CENTER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-notice-center/autoload.php on line 203
- > PHP Warning
Use of undefined constant WPS_NOTICE_CENTER_DIR - assumed 'WPS_NOTICE_CENTER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-notice-center/autoload.php on line 197
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wps-notice-center/wps-notice-center.php 77% from 13 tests
The principal PHP file in "WPS Notice Center" v. 1.2.6 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)
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
Success! There were no dangerous files found in this plugin920 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 250 | 334 | 711 |
CSS | 1 | 0 | 11 | 127 |
PO File | 1 | 14 | 15 | 57 |
JSON | 2 | 0 | 0 | 25 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 15 | 31.25% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 4 | 8.33% |
▷ Private methods | 2 | 4.17% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin