Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.10ms] Passed 4 tests
This is a short check of server-side resources used by Glofox Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.25 ▼0.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.28 ▲0.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.85 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.81 ▼14.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.17 ▲0.06 |
Glofox /wp-admin/options-general.php?page=glofox | 3.20 | 29.93 |
Server storage [IO: ▲4.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Glofox Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.21 ▼0.41 | 2.04 ▲0.38 | 44.93 ▲2.73 |
Dashboard /wp-admin | 2,203 ▲23 | 5.55 ▼0.05 | 96.07 ▲8.87 | 53.72 ▲9.53 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▲0.01 | 34.20 ▼0.70 | 30.70 ▼8.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.73 ▲0.73 | 685.39 ▲33.04 | 54.73 ▲3.72 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.24 ▼0.03 | 95.73 ▼8.99 | 44.93 ▼1.04 |
Glofox /wp-admin/options-general.php?page=glofox | 1,173 | 2.06 | 23.63 | 42.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=glofox
- > Notice in wp-content/plugins/glofox-shortcodes/glofox_shortcodes.php+152
Undefined index: _wpnonce
- > GET request to /wp-admin/options-general.php?page=glofox
- > Notice in wp-content/plugins/glofox-shortcodes/inc/options-page-wrapper.php+46
Undefined variable: branchId
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/glofox-shortcodes/inc/lead_capture.php
- > /wp-content/plugins/glofox-shortcodes/inc/feature.php
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: title in wp-content/plugins/glofox-shortcodes/inc/lead_capture.php on line 5
- > PHP Notice
Undefined variable: after_title in wp-content/plugins/glofox-shortcodes/inc/feature.php on line 5
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/glofox-shortcodes/inc/lead_capture.php on line 35
- > PHP Notice
Undefined variable: after_title in wp-content/plugins/glofox-shortcodes/inc/lead_capture.php on line 5
- > PHP Notice
Undefined variable: branch_id in wp-content/plugins/glofox-shortcodes/inc/lead_capture.php on line 12
- > PHP Notice
Undefined variable: random_id in wp-content/plugins/glofox-shortcodes/inc/lead_capture.php on line 26
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/glofox-shortcodes/inc/feature.php on line 29
- > PHP Notice
Undefined variable: query_string in wp-content/plugins/glofox-shortcodes/inc/feature.php on line 7
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/glofox-shortcodes/inc/feature.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/glofox-shortcodes/inc/options-page-wrapper.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shortcode, glofox
glofox-shortcodes/glofox_shortcodes.php 92% from 13 tests
"Glofox Shortcodes" version 2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("glofox-shortcodes.php" instead of "glofox_shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin544 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 170 | 16 | 478 |
CSS | 2 | 6 | 0 | 45 |
JavaScript | 2 | 6 | 9 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.30MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/classic_1.png | 3.62KB | 1.13KB | ▼ 68.79% |
images/find_your_branch_id.png | 136.30KB | 36.74KB | ▼ 73.04% |
images/shortcode_example.png | 9.52KB | 3.06KB | ▼ 67.91% |
images/glofox_logo_dark.png | 10.22KB | 4.68KB | ▼ 54.19% |
images/customise_colors.png | 89.75KB | 26.43KB | ▼ 70.56% |