Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲1.39ms] 75% from 4 tests
This is a short check of server-side resources used by GS Coaches
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 683.73ms on /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-lite)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.58 ▲0.33 |
Dashboard /wp-admin | 3.58 ▲0.27 | 54.19 ▲5.67 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 53.75 ▲8.66 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 87.80 ▼7.21 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 41.37 ▲6.77 |
All Coaches /wp-admin/edit.php?post_type=gs_coaches | 3.47 | 45.99 |
Add New Coach /wp-admin/post-new.php?post_type=gs_coaches | 3.52 | 60.29 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-premium | 3.51 | 659.97 |
Coaches Settings /wp-admin/edit.php?post_type=gs_coaches&page=coaches-settings | 3.40 | 38.04 |
Help & Usage /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-help | 3.41 | 37.30 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-lite | 3.74 | 683.73 |
Server storage [IO: ▲1.43MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 11 new options
New WordPress options |
---|
gs_coaches_style_settings |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
gs_coaches_adv_settings |
gs_coaches_option_01_settings |
gs_coaches_option_02_settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for GS Coaches
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,149 ▲414 | 15.73 ▲1.49 | 5.34 ▲3.63 | 44.15 ▲0.74 |
Dashboard /wp-admin | 2,440 ▲249 | 6.76 ▲0.86 | 133.06 ▲32.88 | 43.40 ▲4.29 |
Posts /wp-admin/edit.php | 2,343 ▲254 | 3.71 ▲1.72 | 50.95 ▲10.34 | 31.08 ▼4.88 |
Add New Post /wp-admin/post-new.php | 1,603 ▲66 | 23.20 ▲5.07 | 753.77 ▲152.42 | 38.32 ▼23.34 |
Media Library /wp-admin/upload.php | 1,479 ▲91 | 4.61 ▲0.30 | 108.39 ▲9.49 | 46.02 ▲0.51 |
All Coaches /wp-admin/edit.php?post_type=gs_coaches | 1,310 | 3.68 | 55.20 | 32.27 |
Add New Coach /wp-admin/post-new.php?post_type=gs_coaches | 2,551 | 7.99 | 208.05 | 75.89 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-premium | 2,415 | 3.44 | 45.52 | 89.37 |
Coaches Settings /wp-admin/edit.php?post_type=gs_coaches&page=coaches-settings | 2,615 | 6.18 | 135.73 | 53.55 |
Help & Usage /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-help | 1,151 | 3.30 | 43.45 | 38.31 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_coaches&page=gs-coach-plugins-lite | 2,756 | 3.54 | 48.95 | 91.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 11 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- gs_coaches_option_02_settings
- gs_coaches_option_03_settings
- gs_coaches_style_settings
- gs_coaches_adv_settings
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gs-coach/gs-coaches-files/includes/gs_coaches_column.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-coach/gs-coaches-files/includes/gs_coaches_root.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-coach/gs-coaches-files/includes/gs_coaches_cpt.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-coach/gs-coaches-files/includes/gs_coaches_meta_fields.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_id() in wp-content/plugins/gs-coach/gs-coaches-files/includes/templates/gs_coaches_structure_grid_1_square_overlay.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-coach/gs-coaches-files/gs-plugins/gs-plugins-free.php:15
- > PHP Notice
Undefined variable: output in wp-content/plugins/gs-coach/gs-coaches-files/includes/templates/gs_coaches_structure_grid_1_square_overlay.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-coach/gs-coaches-files/gs-common-pages/gs-coach-common-pages.php:3
- > PHP Notice
Undefined variable: output in wp-content/plugins/gs-coach/gs-coaches-files/includes/templates/gs_coaches_structure_grid_2_square_halfoverlay.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gs-coach/gs-coaches-files/includes/gs_coaches_shortcode.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=gs_coaches&page=coaches-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/edit.php?post_type=gs_coaches&page=coaches-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
gs-coach/gs_coaches.php 77% from 13 tests
The principal PHP file in "GS Coaches" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gs-coach.php" instead of "gs_coaches.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 688 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin7,499 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 791 | 962 | 3,664 |
CSS | 7 | 169 | 30 | 2,517 |
SVG | 2 | 0 | 0 | 566 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 2 | 62 | 72 | 210 |
JSON | 1 | 0 | 0 | 21 |
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.37 |
Average class complexity | 30.11 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 3 | 2.01% |
▷ Public methods | 115 | 77.18% |
▷ Protected methods | 6 | 4.03% |
▷ Private methods | 28 | 18.79% |
Functions | 32 | |
▷ Named functions | 30 | 93.75% |
▷ Anonymous functions | 2 | 6.25% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gs-coaches-files/assets/img/icon-128x128.png | 7.01KB | 3.31KB | ▼ 52.83% |
gs-coaches-files/assets/img/no_img.png | 8.45KB | 3.71KB | ▼ 56.07% |