Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.14MB] [CPU: ▲12.88ms] Passed 4 tests
A check of server-side resources used by JoomSport Achievements sport league
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 55.11 ▲13.79 |
Dashboard /wp-admin | 4.47 ▲1.17 | 62.18 ▲13.11 |
Posts /wp-admin/edit.php | 4.51 ▲1.15 | 70.00 ▲24.45 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 95.96 ▲9.66 |
Media Library /wp-admin/upload.php | 4.37 ▲1.14 | 51.62 ▲14.94 |
Players /wp-admin/edit.php?post_type=jsprt_achv_player | 4.43 | 55.44 |
Stage Categories /wp-admin/admin.php?page=jsprtachv-page-gamestages | 4.38 | 68.95 |
Leagues /wp-admin/edit-tags.php?taxonomy=jsprt_achv_league&post_type=jsprt_achv_season | 4.39 | 65.36 |
Extra field New /wp-admin/options.php?page=jsprtachv-extrafields-form | 4.41 | 65.98 |
Result Field New /wp-admin/options.php?page=jsprtachv-resfields-form | 4.41 | 55.62 |
Extra fields /wp-admin/admin.php?page=jsprtachv-page-extrafields | 4.38 | 54.74 |
Stage Category New /wp-admin/options.php?page=jsprtachv-gamestages-form | 4.41 | 56.26 |
Result fields /wp-admin/admin.php?page=jsprtachv-page-resfields | 4.38 | 50.50 |
Seasons /wp-admin/edit.php?post_type=jsprt_achv_season | 4.43 | 55.46 |
Stages /wp-admin/edit.php?post_type=jsprt_achv_stage | 4.43 | 57.26 |
Server storage [IO: ▲0.78MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 327 new files
Database: 7 new tables, 6 new options
New tables |
---|
wp_jsprtachv_stages_val |
wp_jsprtachv_stages |
wp_jsprtachv_results_fields |
wp_jsprtachv_country |
wp_jsprtachv_extra_fields |
wp_jsprtachv_extra_select |
wp_jsprtachv_stage_result |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
JoomSport Achievements sport league: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲294 | 15.52 ▲1.12 | 2.00 ▲0.37 | 41.80 ▼1.17 |
Dashboard /wp-admin | 2,422 ▲234 | 7.03 ▲0.97 | 129.60 ▲14.54 | 109.91 ▲65.88 |
Posts /wp-admin/edit.php | 2,346 ▲257 | 3.49 ▲1.44 | 63.68 ▲24.88 | 113.32 ▲72.85 |
Add New Post /wp-admin/post-new.php | 1,756 ▲222 | 23.10 ▲1.90 | 671.05 ▲36.86 | 35.92 ▼21.90 |
Media Library /wp-admin/upload.php | 1,476 ▲88 | 4.58 ▲0.39 | 100.82 ▼9.90 | 86.71 ▲40.93 |
Players /wp-admin/edit.php?post_type=jsprt_achv_player | 1,304 | 3.80 | 65.13 | 96.44 |
Stage Categories /wp-admin/admin.php?page=jsprtachv-page-gamestages | 1,302 | 3.72 | 54.45 | 65.66 |
Leagues /wp-admin/edit-tags.php?taxonomy=jsprt_achv_league&post_type=jsprt_achv_season | 1,485 | 3.73 | 56.21 | 80.87 |
Extra field New /wp-admin/options.php?page=jsprtachv-extrafields-form | 1,301 | 3.60 | 58.26 | 81.10 |
Result Field New /wp-admin/options.php?page=jsprtachv-resfields-form | 1,316 | 3.86 | 53.14 | 103.88 |
Extra fields /wp-admin/admin.php?page=jsprtachv-page-extrafields | 1,330 | 3.55 | 55.49 | 86.96 |
Stage Category New /wp-admin/options.php?page=jsprtachv-gamestages-form | 1,220 | 3.72 | 62.07 | 94.53 |
Result fields /wp-admin/admin.php?page=jsprtachv-page-resfields | 1,246 | 3.66 | 53.41 | 26.21 |
Seasons /wp-admin/edit.php?post_type=jsprt_achv_season | 1,301 | 3.76 | 59.10 | 107.30 |
Stages /wp-admin/edit.php?post_type=jsprt_achv_stage | 1,301 | 3.80 | 57.17 | 98.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 tables in the database
- wp_jsprtachv_stage_result
- wp_jsprtachv_extra_fields
- wp_jsprtachv_stages
- wp_jsprtachv_results_fields
- wp_jsprtachv_country
- wp_jsprtachv_extra_select
- wp_jsprtachv_stages_val
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 19 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jsprt_achv_stage
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 19 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jsprt_achv_stage
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 76 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jsprt_achv_stage
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 19 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jsprt_achv_stage
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/joomsport-achievements/joomsport-achievements.php
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > 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/joomsport-achievements/includes/pages/joomsport-achievments-page-extrafields.php on line 8
- > 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/joomsport-achievements/includes/pages/joomsport-achievments-page-resultfields.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'JOOMSPORT_ACHIEVEMENTS_PATH_INCLUDESmeta-boxes/joomsport-achievments-meta-player.php' (include_path='.:/usr/share/php') in wp-content/plugins/joomsport-achievements/includes/posts/joomsport-achievments-post-player.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/joomsport-achievements/includes/joomsport-achievments-templates.php:12
- > 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/joomsport-achievements/includes/pages/joomsport-achievments-page-stages.php on line 8
- > PHP Warning
require_once(JOOMSPORT_ACHIEVEMENTS_PATH_INCLUDESmeta-boxes/joomsport-achievments-meta-season.php): failed to open stream: No such file or directory in wp-content/plugins/joomsport-achievements/includes/posts/joomsport-achievments-post-season.php on line 8
- > PHP Warning
Use of undefined constant JOOMSPORT_ACHV_PATH_CLASSES - assumed 'JOOMSPORT_ACHV_PATH_CLASSES' (this will throw an Error in a future version of PHP) in wp-content/plugins/joomsport-achievements/sportleague/base/wordpress/classes/class-jsport-database-base.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'JOOMSPORT_ACHIEVEMENTS_PATH_INCLUDESmeta-boxes/joomsport-achievments-meta-stage.php' (include_path='.:/usr/share/php') in wp-content/plugins/joomsport-achievements/includes/posts/joomsport-achievments-post-stage.php on line 7
- > PHP Warning
Use of undefined constant JOOMSPORT_ACHIEVEMENTS_PATH_INCLUDES - assumed 'JOOMSPORT_ACHIEVEMENTS_PATH_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/joomsport-achievements/includes/posts/joomsport-achievments-post-player.php on line 8
- > PHP Warning
require_once(JOOMSPORT_ACHV_PATH_CLASSESclass-jsport-database.php): failed to open stream: No such file or directory in wp-content/plugins/joomsport-achievements/sportleague/base/wordpress/classes/class-jsport-database-base.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsprtachv-page-resfields
- > Network (severe)
https://useresponse.com/404 - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: sport league, athletics, racing, olympic games, sports...
joomsport-achievements/joomsport-achievements.php 92% from 13 tests
The primary PHP file in "JoomSport Achievements sport league" version 1.5.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin13,433 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 32 | 22 | 7,439 |
PHP | 48 | 1,009 | 474 | 5,163 |
JavaScript | 7 | 151 | 101 | 787 |
Markdown | 1 | 12 | 0 | 26 |
PO File | 1 | 0 | 0 | 14 |
HTML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 1 | 2.22% |
▷ Concrete classes | 44 | 97.78% |
▷ Final classes | 0 | 0.00% |
Methods | 261 | |
▷ Static methods | 130 | 49.81% |
▷ Public methods | 237 | 90.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 9.20% |
Functions | 17 | |
▷ Named functions | 11 | 64.71% |
▷ Anonymous functions | 6 | 35.29% |
Constants | 27 | |
▷ Global constants | 25 | 92.59% |
▷ Class constants | 2 | 7.41% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
260 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/ch.png | 0.57KB | 0.49KB | ▼ 13.57% |
assets/images/flags/mv.png | 0.74KB | 0.84KB | 0.00% |
assets/images/flags/la.png | 0.63KB | 0.67KB | 0.00% |
sportleague/assets/images/calendar_ico_hover.png | 1.35KB | 0.53KB | ▼ 60.62% |
assets/images/flags/bt.png | 0.91KB | 0.96KB | 0.00% |