Benchmarks
Plugin footprint Passed 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.13MB] [CPU: ▼142.02ms] Passed 4 tests
A check of server-side resources used by Gspots
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 38.51 ▲5.42 |
Dashboard /wp-admin | 3.19 ▲0.13 | 48.33 ▲4.22 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 37.76 ▼8.42 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 92.35 ▼564.69 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 33.27 ▲0.80 |
Add New /wp-admin/post-new.php?post_type=spot | 3.24 | 44.88 |
Gspots /wp-admin/options-general.php?page=gspots-setting-admin | 3.08 | 29.04 |
All Spots /wp-admin/edit.php?post_type=spot | 3.17 | 36.44 |
Types /wp-admin/edit-tags.php?taxonomy=type&post_type=spot | 3.13 | 24.53 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gspots
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲185 | 16.62 ▲1.02 | 18.79 ▲8.66 | 48.77 ▼0.31 |
Dashboard /wp-admin | 3,017 ▲86 | 5.88 ▼0.05 | 133.78 ▼10.78 | 112.51 ▲7.45 |
Posts /wp-admin/edit.php | 2,786 ▲47 | 2.69 ▼0.01 | 65.06 ▲1.34 | 95.28 ▲11.06 |
Add New Post /wp-admin/post-new.php | 1,703 ▲205 | 19.08 ▲0.27 | 375.17 ▲4.50 | 106.88 ▼7.24 |
Media Library /wp-admin/upload.php | 1,854 ▲47 | 5.03 ▲0.01 | 141.90 ▼13.76 | 115.12 ▼10.58 |
Add New /wp-admin/post-new.php?post_type=spot | 3,136 | 8.95 | 212.91 | 146.64 |
Gspots /wp-admin/options-general.php?page=gspots-setting-admin | 1,085 | 2.09 | 57.07 | 84.19 |
All Spots /wp-admin/edit.php?post_type=spot | 1,455 | 2.62 | 63.29 | 73.26 |
Types /wp-admin/edit-tags.php?taxonomy=type&post_type=spot | 1,758 | 2.50 | 64.67 | 79.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% 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)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=gspots-setting-admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=gspots-setting-admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gspots/core/meta-box.php:9
- > PHP Warning
Use of undefined constant GSPOTS_CACHE_LOCATION - assumed 'GSPOTS_CACHE_LOCATION' (this will throw an Error in a future version of PHP) in wp-content/plugins/gspots/core/geocache.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gspots/core/settings.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gspots/core/shortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gspots/core/post-type.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gspots/core/taxonomy.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gspots/core/geocache.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gspots/gspots.php:13
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: map, google, spots, store, search...
gspots/gspots.php 92% from 13 tests
The principal PHP file in "Gspots" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
There were no executable files found in this plugin3,116 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 714 | 781 | 2,490 |
PHP | 8 | 123 | 85 | 511 |
CSS | 2 | 24 | 12 | 114 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 6 | 46.15% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/markers/marker_red.png | 1.91KB | 1.01KB | ▼ 46.91% |
core/markers/marker_orange.png | 1.91KB | 1.01KB | ▼ 47.26% |
core/markers/marker_purple.png | 1.92KB | 1.00KB | ▼ 47.97% |
core/markers/marker_blue.png | 1.93KB | 1.02KB | ▼ 47.27% |
core/markers/marker.png | 1.87KB | 0.97KB | ▼ 47.86% |