Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.94ms] 75% from 4 tests
This is a short check of server-side resources used by California State Grants
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 875.94ms on /wp-admin/post-new.php?post_type=csl_grant_awards)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 33.79 ▼6.01 |
Dashboard /wp-admin | 3.50 ▲0.20 | 49.37 ▼0.90 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.97 ▼0.05 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 87.43 ▼8.80 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 42.51 ▲8.81 |
Getting Started /wp-admin/edit.php?post_type=ca_grants&page=welcome | 3.39 | 32.15 |
All CA Grants /wp-admin/edit.php?post_type=ca_grants | 3.47 | 35.68 |
All Award Uploads /wp-admin/edit.php?post_type=csl_award_uploads | 3.47 | 36.80 |
Bulk Upload /wp-admin/edit.php?post_type=csl_award_uploads&page=bulk-upload | 3.39 | 31.91 |
Add New /wp-admin/post-new.php?post_type=ca_grants | 4.12 | 2,259.09 |
Add New /wp-admin/post-new.php?post_type=csl_grant_awards | 3.74 | 875.94 |
All Grant Awards /wp-admin/edit.php?post_type=csl_grant_awards | 3.44 | 35.72 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 271 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for California State Grants
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 13.75 ▼0.62 | 1.65 ▼0.15 | 40.74 ▼9.48 |
Dashboard /wp-admin | 2,345 ▲157 | 5.52 ▲0.61 | 123.62 ▲23.36 | 42.93 ▼0.26 |
Posts /wp-admin/edit.php | 2,241 ▲152 | 3.02 ▲1.04 | 48.85 ▲8.09 | 37.97 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,372 ▼156 | 16.17 ▼2.06 | 313.65 ▼325.15 | 16.00 ▼40.27 |
Media Library /wp-admin/upload.php | 1,528 ▲137 | 4.83 ▲0.61 | 114.29 ▲17.34 | 48.60 ▲4.81 |
Getting Started /wp-admin/edit.php?post_type=ca_grants&page=welcome | 933 | 2.56 | 30.27 | 24.68 |
All CA Grants /wp-admin/edit.php?post_type=ca_grants | 1,212 | 2.80 | 37.59 | 31.71 |
All Award Uploads /wp-admin/edit.php?post_type=csl_award_uploads | 1,204 | 2.82 | 39.26 | 28.37 |
Bulk Upload /wp-admin/edit.php?post_type=csl_award_uploads&page=bulk-upload | 925 | 2.59 | 31.57 | 24.10 |
Add New /wp-admin/post-new.php?post_type=ca_grants | 4,512 | 10.77 | 335.74 | 111.82 |
Add New /wp-admin/post-new.php?post_type=csl_grant_awards | 3,565 | 8.91 | 185.65 | 68.35 |
All Grant Awards /wp-admin/edit.php?post_type=csl_grant_awards | 1,331 | 2.79 | 39.89 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- ca_grants_settings
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=csl_grant_awards
- > Notice in wp-content/plugins/california-state-grants/includes/classes/Meta/Field.php+782
Undefined index: required
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > Warning in wp-content/plugins/california-state-grants/includes/classes/PostTypes/GrantAwards.php+290
Use of undefined constant CSL_IS_PORTAL - assumed 'CSL_IS_PORTAL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > Notice in wp-content/plugins/california-state-grants/includes/classes/PostTypes/GrantAwards.php+294
Trying to get property 'labels' of non-object
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > Notice in wp-content/plugins/california-state-grants/includes/classes/PostTypes/GrantAwards.php+294
Trying to get property 'all_items' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > Notice in wp-includes/class-walker-category-dropdown.php+76
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > Notice in wp-includes/class-walker-category-dropdown.php+65
Trying to get property 'name' of non-object
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > User deprecated in wp-includes/functions.php+5737
Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability 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
The following issues need your attention
- 113× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/california-state-grants/includes/classes/REST/GrantAwardsValidation.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/california-state-grants/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=csl_grant_awards
- > Network (severe)
wp-content/plugins/california-state-grants/dist/css/jquery-ui.css?ver=2.0.8 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=csl_grant_awards
- > Javascript (severe) in unknown
/wp-content/plugins/california-state-grants/dist/js/admin.js?ver=2.0.8 0:86876 Uncaught TypeError: Cannot read properties of undefined (reading 'dataset')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: california grants portal, california state agencies, loans, grants, post awards...
california-state-grants/plugin.php 77% from 13 tests
This is the main PHP file of "California State Grants" version 2.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("california-state-grants.php" instead of "plugin.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin53,656 lines of code in 242 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 8 | 0 | 0 | 41,468 |
PHP | 157 | 1,837 | 3,425 | 9,363 |
JavaScript | 45 | 460 | 468 | 1,849 |
Markdown | 9 | 179 | 0 | 531 |
CSS | 17 | 22 | 35 | 153 |
Sass | 1 | 30 | 0 | 143 |
YAML | 3 | 31 | 3 | 123 |
XML | 2 | 1 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 2 | 1.42% |
▷ Concrete classes | 139 | 98.58% |
▷ Final classes | 0 | 0.00% |
Methods | 379 | |
▷ Static methods | 90 | 23.75% |
▷ Public methods | 323 | 85.22% |
▷ Protected methods | 41 | 10.82% |
▷ Private methods | 15 | 3.96% |
Functions | 64 | |
▷ Named functions | 45 | 70.31% |
▷ Anonymous functions | 19 | 29.69% |
Constants | 24 | |
▷ Global constants | 16 | 66.67% |
▷ Class constants | 8 | 33.33% |
▷ Public constants | 8 | 100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/csl-logo-header.png | 28.25KB | 11.38KB | ▼ 59.70% |