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.17MB] [CPU: ▼1.24ms] Passed 4 tests
Server-side resources used by Site Notices WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.78 ▲0.93 |
Dashboard /wp-admin | 3.47 ▲0.16 | 48.02 ▲2.19 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 49.72 ▲3.72 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 92.01 ▼6.58 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.69 ▼1.48 |
Add New /wp-admin/post-new.php?post_type=alsvin-site-notice | 3.42 | 44.24 |
All Notices /wp-admin/edit.php?post_type=alsvin-site-notice | 3.42 | 36.87 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Site Notices WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.33 ▼1.04 | 1.70 ▼0.10 | 40.40 ▼0.77 |
Dashboard /wp-admin | 2,254 ▲69 | 4.99 ▼0.86 | 103.88 ▲6.39 | 40.11 ▲0.28 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.30 ▲0.30 | 42.31 ▲2.12 | 36.47 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 18.22 ▲0.73 | 621.85 ▲8.08 | 34.93 ▼17.54 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.50 ▲0.25 | 96.84 ▼4.50 | 42.22 ▼1.56 |
Add New /wp-admin/post-new.php?post_type=alsvin-site-notice | 1,939 | 3.12 | 63.55 | 36.77 |
All Notices /wp-admin/edit.php?post_type=alsvin-site-notice | 1,114 | 2.29 | 31.51 | 27.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-notices-wp/class-site-notices-wp-custom-fields.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #2, #3, #4 in site-notices-wp/assets to your readme.txt
site-notices-wp/site-notices-wp.php 85% from 13 tests
The main PHP script in "Site Notices WP" version 1.1.2 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,477 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 109 | 166 | 652 |
JavaScript | 4 | 86 | 26 | 513 |
CSS | 2 | 14 | 9 | 312 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin