Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-easy-notices/wp-easy-notices.php+24
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼56.08ms] Passed 4 tests
This is a short check of server-side resources used by WP Easy Notices
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.24 ▼39.55 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.78 ▼43.25 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.49 ▼49.91 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.84 ▼91.61 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.71 ▼29.68 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP Easy Notices: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲46 | 13.54 ▼0.71 | 1.59 ▼0.66 | 43.14 ▼4.52 |
Dashboard /wp-admin | 2,209 ▲27 | 4.80 ▼0.10 | 109.11 ▲6.13 | 42.54 ▼2.33 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.02 | 39.53 ▲4.82 | 34.88 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 18.14 ▼4.97 | 597.74 ▼56.71 | 61.07 ▲2.57 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.18 ▼0.05 | 96.37 ▼3.26 | 40.13 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-easy-notices/wp-easy-notices.php+24
define(): Declaration of case-insensitive constants is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× 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/wp-easy-notices/lib/front-end.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-easy-notices/wp-easy-notices.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-notices/lib/customizer.php:16
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Easily add a notice banner from the Customizer.), #2 (Control dismissal of the notice.)
wp-easy-notices/wp-easy-notices.php 92% from 13 tests
The main PHP script in "WP Easy Notices" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin9,409 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 8,898 |
PHP | 3 | 79 | 56 | 304 |
JavaScript | 7 | 27 | 27 | 134 |
Sass | 1 | 9 | 0 | 46 |
Markdown | 1 | 9 | 0 | 16 |
SVG | 5 | 0 | 0 | 10 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.30 |
▷ 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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected