Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.73MB] [CPU: ▼35.76ms] Passed 4 tests
Analyzing server-side resources used by ScoutTroop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.41 ▲1.77 |
Dashboard /wp-admin | 3.21 ▼0.09 | 25.65 ▼29.74 |
Posts /wp-admin/edit.php | 3.21 ▼0.14 | 23.26 ▼26.83 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 24.65 ▼79.18 |
Media Library /wp-admin/upload.php | 3.21 ▼0.01 | 29.16 ▼7.30 |
/wp-admin/admin.php?page=scouttroop/scouttroop.php | 3.21 | 27.72 |
Leadership Roles /wp-admin/admin.php?page=scouttroop/scouttroop.php/leadership | 3.21 | 23.84 |
Adult Roles /wp-admin/admin.php?page=scouttroop/scouttroop.php/adult | 3.21 | 22.16 |
Patrols /wp-admin/admin.php?page=scouttroop/scouttroop.php/patrols | 3.21 | 26.68 |
Ranks /wp-admin/admin.php?page=scouttroop/scouttroop.php/rank_assignment | 3.21 | 24.37 |
Patrol Admin /wp-admin/admin.php?page=scouttroop/scouttroop.php/patrol_admin | 3.21 | 28.45 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ScoutTroop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.72 ▼0.64 | 1.80 ▼0.35 | 43.62 ▲0.97 |
Dashboard /wp-admin | 2,250 ▲59 | 4.92 ▼0.18 | 106.27 ▼15.30 | 75.99 ▲26.08 |
Posts /wp-admin/edit.php | 2,136 ▲50 | 2.02 ▲0.03 | 37.41 ▼0.93 | 33.36 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,700 ▲180 | 22.46 ▼0.56 | 782.67 ▲136.71 | 64.41 ▲8.36 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.24 ▲0.15 | 101.65 ▼13.75 | 84.18 ▲35.66 |
/wp-admin/admin.php?page=scouttroop/scouttroop.php | 821 | 2.02 | 25.04 | 25.45 |
Leadership Roles /wp-admin/admin.php?page=scouttroop/scouttroop.php/leadership | 948 | 2.06 | 27.66 | 27.90 |
Adult Roles /wp-admin/admin.php?page=scouttroop/scouttroop.php/adult | 995 | 2.03 | 26.10 | 27.98 |
Patrols /wp-admin/admin.php?page=scouttroop/scouttroop.php/patrols | 994 | 2.07 | 24.55 | 28.81 |
Ranks /wp-admin/admin.php?page=scouttroop/scouttroop.php/rank_assignment | 991 | 2.03 | 25.93 | 28.23 |
Patrol Admin /wp-admin/admin.php?page=scouttroop/scouttroop.php/patrol_admin | 854 | 2.21 | 26.41 | 31.61 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scouttroop/scouttroop.php/patrol_admin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scouttroop/scouttroop.php/rank_assignment
- > Notice in wp-content/plugins/scouttroop/includes/scouttroop_rank_assignment.php+80
Undefined index: scout
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scouttroop/scouttroop.php/patrol_admin
- > Notice in wp-content/plugins/scouttroop/scouttroop.php+116
Trying to access array offset on value of type bool
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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/scouttroop/scouttroop.php
- > /wp-content/plugins/scouttroop/uninstall.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/scouttroop/includes/scouttroop_leadership_assignment.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/scouttroop/includes/scouttroop_adult_assignment.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/scouttroop/includes/scouttroop_leadership_assignment.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/scouttroop/includes/scouttroop_rank_assignment.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/scouttroop/includes/scouttroop_patrol_assignment.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/scouttroop/includes/scouttroop_leadership_assignment.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/scouttroop/includes/scouttroop_rank_assignment.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/scouttroop/includes/scouttroop_adult_assignment.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/scouttroop/includes/scouttroop_rank_assignment.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/scouttroop/includes/shortcodes.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Add/edit list of Patrols.), #2 (Assign roles to adults.), #3 (Assign scouts to patrols.), #4 (Assign rank to scouts.), #5 (Assign scouts to leadership positions.), #6 (Scouts by rank grid)
scouttroop/scouttroop.php Passed 13 tests
The main PHP file in "ScoutTroop" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
A brief description of the plugin.
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
No dangerous file extensions were detected809 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 153 | 85 | 808 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 2 | 4.76% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 18.12KB | 6.89KB | ▼ 62.00% |
assets/second_class-small.png | 17.17KB | 6.54KB | ▼ 61.91% |
assets/star-small.png | 16.76KB | 6.25KB | ▼ 62.73% |
assets/life-small.png | 17.44KB | 6.38KB | ▼ 63.41% |
screenshot-4.png | 34.04KB | 9.66KB | ▼ 71.62% |