Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.99ms] Passed 4 tests
A check of server-side resources used by Knights of Columbus - State
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.94 ▼0.10 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.11 ▼12.10 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 43.71 ▼0.79 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.55 ▼13.21 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.38 ▼1.87 |
Knights /wp-admin/admin.php?page=kofc-state-knight-edit | 3.33 | 30.94 |
KofC State Plugin /wp-admin/options-general.php?page=kofc-state-options | 3.32 | 30.24 |
All Councils /wp-admin/edit.php?post_type=council | 3.38 | 36.72 |
Knights /wp-admin/admin.php?page=kofc-state | 3.34 | 28.72 |
All Assemblies /wp-admin/edit.php?post_type=assembly | 3.38 | 32.63 |
Star Council Requirements /wp-admin/admin.php?page=kofc-state-starreq | 3.33 | 28.13 |
Add Assembly /wp-admin/post-new.php?post_type=assembly | 3.43 | 44.83 |
All Knights /wp-admin/edit.php?post_type=knight | 3.38 | 42.78 |
Add Council /wp-admin/post-new.php?post_type=council | 3.44 | 43.53 |
Add Knight /wp-admin/post-new.php?post_type=knight | 3.43 | 45.72 |
Server storage [IO: ▲0.37MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 67 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_otgkofcs_knights |
wp_otgkofcs_messages |
wp_otgkofcs_district_scores |
wp_otgkofcs_star_requirements |
wp_otgkofcs_star_reqs_met |
wp_otgkofcs_council_scores |
New WordPress options |
---|
otgkofcs_number_of_districts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Knights of Columbus - State: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲270 | 13.62 ▼0.77 | 7.49 ▲5.87 | 40.36 ▲0.45 |
Dashboard /wp-admin | 2,335 ▲154 | 5.86 ▲0.26 | 97.32 ▼2.25 | 40.09 ▼3.64 |
Posts /wp-admin/edit.php | 2,244 ▲144 | 2.48 ▲0.47 | 47.24 ▲12.84 | 32.26 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,643 ▲117 | 23.64 ▲0.09 | 697.04 ▲20.19 | 44.74 ▼7.88 |
Media Library /wp-admin/upload.php | 1,537 ▲134 | 4.38 ▲0.12 | 110.98 ▼0.87 | 39.66 ▼4.67 |
Knights /wp-admin/admin.php?page=kofc-state-knight-edit | 1,002 | 2.01 | 35.42 | 27.25 |
KofC State Plugin /wp-admin/options-general.php?page=kofc-state-options | 997 | 2.05 | 35.47 | 26.66 |
All Councils /wp-admin/edit.php?post_type=council | 1,271 | 2.31 | 43.05 | 29.67 |
Knights /wp-admin/admin.php?page=kofc-state | 993 | 2.08 | 38.79 | 28.35 |
All Assemblies /wp-admin/edit.php?post_type=assembly | 1,268 | 2.30 | 42.65 | 31.86 |
Star Council Requirements /wp-admin/admin.php?page=kofc-state-starreq | 934 | 2.03 | 42.71 | 33.55 |
Add Assembly /wp-admin/post-new.php?post_type=assembly | 2,446 | 7.86 | 178.35 | 67.17 |
All Knights /wp-admin/edit.php?post_type=knight | 1,292 | 2.31 | 40.91 | 28.38 |
Add Council /wp-admin/post-new.php?post_type=council | 2,518 | 7.86 | 166.49 | 53.88 |
Add Knight /wp-admin/post-new.php?post_type=knight | 2,410 | 7.95 | 172.45 | 56.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 6 tables in the database
- wp_otgkofcs_council_scores
- wp_otgkofcs_star_reqs_met
- wp_otgkofcs_district_scores
- wp_otgkofcs_star_requirements
- wp_otgkofcs_messages
- wp_otgkofcs_knights
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- otgkofcs_number_of_districts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=kofc-state-knight-edit
- > Notice in wp-content/plugins/kofc-state/helpers/validation_helper.php+34
Undefined index: knight_id
- > GET request to /wp-admin/admin.php?page=kofc-state-starreq
- > Notice in wp-content/plugins/kofc-state/helpers/validation_helper.php+34
Undefined index: delete
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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/kofc-state/views/admin/message_view.php
- > /wp-content/plugins/kofc-state/views/scoreboard_knights.php
- > /wp-content/plugins/kofc-state/views/scoreboard_councils.php
- 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/kofc-state/views/admin/message_view.php on line 20
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/kofc-state/kofc-state.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function otgkofcs_display_messages() in wp-content/plugins/kofc-state/views/admin/star_scores.php:14
- > PHP Notice
Undefined variable: message in wp-content/plugins/kofc-state/views/admin/message_view.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kofc-state/views/scoreboard_star_reqs.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/kofc-state/views/admin/message_view.php on line 16
- > PHP Notice
Undefined variable: message in wp-content/plugins/kofc-state/views/admin/message_view.php on line 16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/kofc-state/kofc-state.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kofc-state/kofc-state.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function otgkofcs_display_messages() in wp-content/plugins/kofc-state/views/admin/scores_coun_dist.php:14
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, shortcode, knights of columbus
kofc-state/kofc-state.php Passed 13 tests
The main PHP file in "Knights of Columbus - State" ver. 2.4.3 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Functionality for State Councils Including Recruiting Scoreboards
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
Everything looks great! No dangerous files found in this plugin3,119 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 425 | 779 | 2,627 |
CSS | 4 | 44 | 32 | 456 |
JavaScript | 3 | 10 | 42 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 41 | 97.62% |
▷ Anonymous functions | 1 | 2.38% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
images/twitter2_64px.png | 7.71KB | 2.64KB | ▼ 65.83% |
images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
images/facebook.png | 7.52KB | 3.21KB | ▼ 57.40% |
images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |