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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.92MB] [CPU: ▲154.33ms] Passed 4 tests
Analyzing server-side resources used by GolfSoc
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.08 | 198.84 ▲156.65 |
Dashboard /wp-admin | 4.25 ▲0.95 | 197.67 ▲149.66 |
Posts /wp-admin/edit.php | 4.30 ▲0.95 | 199.55 ▲149.06 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.90 | 260.53 ▲161.96 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 350.58 ▲315.88 |
Tools /wp-admin/admin.php?page=golf-society_tools | 4.71 | 192.32 |
Handicaps /wp-admin/admin.php?page=golf-society_handicaps | 4.67 | 186.44 |
Courses /wp-admin/admin.php?page=golf-society_courses | 4.75 | 190.42 |
Competitions /wp-admin/admin.php?page=golf-society_competitions | 4.95 | 189.16 |
Overview /wp-admin/admin.php?page=golf-society_adminmenu | 4.83 | 191.17 |
Settings /wp-admin/admin.php?page=golf-society_settings | 5.12 | 193.17 |
Players /wp-admin/admin.php?page=golf-society_players | 4.74 | 187.32 |
Server storage [IO: ▲0.89MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 98 new files
Database: 9 new tables, 6 new options
New tables |
---|
wp_golfsoc_sessions |
wp_golfsoc_courses |
wp_golfsoc_teecolours |
wp_golfsoc_tees |
wp_golfsoc_scores |
wp_golfsoc_handicaps |
wp_golfsoc_settings |
wp_golfsoc_players |
wp_golfsoc_competitions |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for GolfSoc
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲255 | 13.57 ▼0.71 | 7.59 ▲5.83 | 40.75 ▼8.46 |
Dashboard /wp-admin | 2,270 ▲79 | 4.91 ▼0.04 | 106.56 ▲1.38 | 39.54 ▼4.63 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.03 ▲0.03 | 37.03 ▼1.37 | 29.42 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,562 ▲28 | 20.91 ▼2.45 | 629.70 ▲40.94 | 39.54 ▼11.85 |
Media Library /wp-admin/upload.php | 1,446 ▲61 | 4.27 ▲0.03 | 97.69 ▲0.86 | 43.92 ▲0.06 |
Tools /wp-admin/admin.php?page=golf-society_tools | 1,082 | 2.21 | 25.27 | 31.15 |
Handicaps /wp-admin/admin.php?page=golf-society_handicaps | 826 | 2.21 | 26.92 | 24.73 |
Courses /wp-admin/admin.php?page=golf-society_courses | 826 | 2.06 | 25.85 | 27.52 |
Competitions /wp-admin/admin.php?page=golf-society_competitions | 826 | 2.21 | 24.96 | 30.56 |
Overview /wp-admin/admin.php?page=golf-society_adminmenu | 920 | 2.18 | 23.08 | 29.23 |
Settings /wp-admin/admin.php?page=golf-society_settings | 1,824 | 1.75 | 25.39 | 32.41 |
Players /wp-admin/admin.php?page=golf-society_players | 823 | 2.21 | 24.76 | 27.21 |
Uninstaller [IO: ▲0.08MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 9 tables
- wp_golfsoc_scores
- wp_golfsoc_tees
- wp_golfsoc_competitions
- wp_golfsoc_courses
- wp_golfsoc_players
- wp_golfsoc_sessions
- wp_golfsoc_teecolours
- wp_golfsoc_settings
- wp_golfsoc_handicaps
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 97× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include(): Failed opening 'GOLFSOC_INCLUDE_PATHgolfsoclib_table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/golf-society/admin/golfsoc_manage_settings.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'GolfSocLibExportAdminClass' not found in wp-content/plugins/golf-society/admin/golfsoc_csv_export.php:31
- > PHP Warning
Use of undefined constant GOLFSOC_INCLUDE_PATH - assumed 'GOLFSOC_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/golf-society/admin/golfsoc_manage_tools.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'GOLFSOC_INCLUDE_PATHgolfsoc_adminlist.php' (include_path='.:/usr/share/php') in wp-content/plugins/golf-society/include/golfsoc_playerlist.php on line 23
- > PHP Warning
Use of undefined constant GOLFSOC_INCLUDE_PATH - assumed 'GOLFSOC_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/golf-society/admin/golfsoc_manage_overview.php on line 23
- > PHP Warning
include(): Failed opening 'GOLFSOC_INCLUDE_PATHgolfsoc_testemail.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/golf-society/admin/golfsoc_manage_tools.php on line 24
- > PHP Warning
Use of undefined constant GOLFSOC_INCLUDE_PATH - assumed 'GOLFSOC_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/golf-society/admin/golfsoc_showemail.php on line 3
- > PHP Warning
include(GOLFSOC_INCLUDE_PATHgolfsoc_testemail.php): failed to open stream: No such file or directory in wp-content/plugins/golf-society/admin/golfsoc_manage_tools.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'GOLFSOC_INCLUDE_PATHgolfsoc_playerlist.php' (include_path='.:/usr/share/php') in wp-content/plugins/golf-society/admin/golfsoc_manage_competitions.php on line 23
- > PHP Warning
Use of undefined constant GOLFSOC_INCLUDE_PATH - assumed 'GOLFSOC_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/golf-society/admin/golfsoc_csv_exportphs.php on line 24
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Screenshot 1: Overview Page), #2 (Screenshot 2: Players Admin Page), #3 (Screenshot 3: Courses Admin Page), #4 (Screenshot 4: Competitions Admin Page), #5 (Screenshot 5: Handicaps Admin Page), #6 (Screenshot 6: Tools Admin Page), #7 (Screenshot 7: General Settings Page), #8 (Screenshot 8: Golf Settings Page), #9 (Screenshot 9: EMail Settings Page), #10 (Screenshot 10: Page Template Settings Page), #11 (Screenshot 11: Player Summary), #12 (Screenshot 12: Handicap History), #13 (Screenshot 13: Competitions Record), #14 (Screenshot 14: Competition Results), #15 (Screenshot 15: Course Rating), #16 (Screenshot 16: Playing Handicaps)
golf-society/golfsoc.php 92% from 13 tests
The entry point to "GolfSoc" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("golf-society.php" instead of "golfsoc.php")
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
Everything looks great! No dangerous files found in this plugin14,477 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 3,342 | 2,051 | 11,871 |
JavaScript | 6 | 521 | 252 | 2,315 |
CSS | 3 | 69 | 30 | 291 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 33.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 47 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 717 | |
▷ Static methods | 110 | 15.34% |
▷ Public methods | 715 | 99.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.28% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 273 | |
▷ Global constants | 192 | 70.33% |
▷ Class constants | 81 | 29.67% |
▷ Public constants | 81 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Golfer-50.png | 11.24KB | 2.64KB | ▼ 76.54% |
templates/images/Golfer-wide.png | 10.00KB | 4.35KB | ▼ 56.48% |
templates/images/Golfer.png | 13.43KB | 6.75KB | ▼ 49.73% |
images/Golfer-25.png | 8.79KB | 1.42KB | ▼ 83.87% |
templates/images/Golfer-50.png | 11.24KB | 2.64KB | ▼ 76.54% |