Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/easy-announcements/includes/functions.php+139
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.59MB] [CPU: ▼30.39ms] Passed 4 tests
An overview of server-side resources used by Easy Announcements
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.81 | 22.30 ▼16.73 |
Dashboard /wp-admin | 4.70 ▲1.39 | 27.55 ▼17.54 |
Posts /wp-admin/edit.php | 4.70 ▲1.34 | 25.97 ▼21.92 |
Add New Post /wp-admin/post-new.php | 4.70 ▼1.19 | 27.48 ▼65.35 |
Media Library /wp-admin/upload.php | 4.70 ▲1.47 | 25.26 ▼5.36 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 4.70 | 27.28 |
Post Types /wp-admin/edit.php?post_type=acf-post-type | 4.70 | 24.11 |
All announcements /wp-admin/edit.php?post_type=announcement | 4.70 | 24.23 |
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy | 4.70 | 26.34 |
Settings /wp-admin/edit.php?post_type=announcement&page=easy-announcements-admin | 4.70 | 25.32 |
Add New /wp-admin/post-new.php?post_type=announcement | 4.70 | 24.31 |
Server storage [IO: ▲17.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 473 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
acf_version |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Announcements
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.66 ▼1.10 | 11.35 ▲9.81 | 42.57 ▲2.68 |
Dashboard /wp-admin | 2,241 ▲70 | 5.51 ▼0.08 | 81.27 ▼9.96 | 38.29 ▲0.06 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.02 ▲0.06 | 36.21 ▲0.29 | 37.48 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6,721 ▲5,195 | 24.41 ▲0.74 | 990.37 ▲372.50 | 53.24 ▲4.45 |
Media Library /wp-admin/upload.php | 2,001 ▲607 | 8.24 ▲3.97 | 218.83 ▲122.18 | 52.38 ▲9.51 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 1,720 | 2.40 | 40.23 | 70.24 |
Post Types /wp-admin/edit.php?post_type=acf-post-type | 1,753 | 2.38 | 37.24 | 42.07 |
All announcements /wp-admin/edit.php?post_type=announcement | 1,133 | 2.22 | 34.02 | 29.81 |
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy | 1,781 | 2.14 | 34.72 | 42.58 |
Settings /wp-admin/edit.php?post_type=announcement&page=easy-announcements-admin | 2,288 | 2.80 | 93.50 | 33.10 |
Add New /wp-admin/post-new.php?post_type=announcement | 7,626 | 27.11 | 974.05 | 57.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/easy-announcements/includes/functions.php+139
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- acf_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 114 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=announcement
- > Notice in wp-content/plugins/easy-announcements/includes/functions.php+139
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=announcement
- > User deprecated in wp-includes/functions.php+5828
Hook allowed_block_types is deprecated since version 5.8.0! Use allowed_block_types_all instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 104× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-announcements/includes/acf/includes/upgrades.php:456
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/easy-announcements/includes/acf/includes/fields/class-acf-field-color_picker.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-announcements/includes/acf/includes/acf-bidirectional-functions.php:202
- > PHP Notice
Undefined variable: rule in wp-content/plugins/easy-announcements/includes/acf/includes/admin/views/acf-field-group/location-rule.php on line 4
- > PHP Warning
include(): Failed opening 'EASY_ANNOUNCEMENTS_ABSPATH/admin/admin-functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-announcements/admin/admin.php on line 2
- > PHP Warning
Use of undefined constant EASY_ANNOUNCEMENTS_ABSPATH - assumed 'EASY_ANNOUNCEMENTS_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-announcements/admin/admin.php on line 3
- > PHP Warning
Use of undefined constant EASY_ANNOUNCEMENTS_ABSPATH - assumed 'EASY_ANNOUNCEMENTS_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-announcements/admin/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-announcements/includes/acf/includes/forms/form-attachment.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-announcements/includes/acf/includes/admin/views/acf-field-group/pro-features.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/easy-announcements/includes/acf/includes/acf-value-functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in easy-announcements/assets to your readme.txt
easy-announcements/easy-announcements.php 92% from 13 tests
"Easy Announcements" version 0.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
There were no executable files found in this plugin193,192 lines of code in 359 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 46 | 46,767 | 70,992 | 112,491 |
JavaScript | 26 | 5,343 | 7,483 | 39,651 |
PHP | 174 | 9,449 | 21,077 | 27,612 |
CSS | 17 | 715 | 1,529 | 13,138 |
SVG | 95 | 0 | 0 | 291 |
Markdown | 1 | 5 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 115 | |
▷ Abstract classes | 3 | 2.61% |
▷ Concrete classes | 112 | 97.39% |
▷ Final classes | 2 | 1.79% |
Methods | 968 | |
▷ Static methods | 2 | 0.21% |
▷ Public methods | 944 | 97.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 2.48% |
Functions | 578 | |
▷ Named functions | 568 | 98.27% |
▷ Anonymous functions | 10 | 1.73% |
Constants | 17 | |
▷ Global constants | 15 | 88.24% |
▷ Class constants | 2 | 11.76% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
43 PNG files occupy 0.86MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/acf/assets/images/field-type-previews/field-preview-radio-button.png | 15.22KB | 6.14KB | ▼ 59.69% |
includes/acf/assets/images/field-type-previews/field-preview-google-map.png | 9.28KB | 3.62KB | ▼ 60.98% |
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
includes/acf/assets/images/field-type-previews/field-preview-taxonomy.png | 11.45KB | 6.06KB | ▼ 47.07% |
includes/acf/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |