Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲4.84MB] [CPU: ▼270.80ms] 75% from 4 tests
An overview of server-side resources used by Get Directions Map
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,580.56ms on /wp-admin/options-general.php?page=get-directions-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.59 ▲5.07 | 80.70 ▲26.67 |
Dashboard /wp-admin | 8.60 ▲5.19 | 65.98 ▲27.25 |
Posts /wp-admin/edit.php | 8.61 ▲4.96 | 65.40 ▲24.22 |
Add New Post /wp-admin/post-new.php | 11.11 ▲4.14 | 119.01 ▼1,158.14 |
Media Library /wp-admin/upload.php | 8.61 ▲5.31 | 53.17 ▲24.05 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.61 | 52.80 |
MapQuest - Get Directions /wp-admin/options-general.php?page=get-directions-settings | 8.61 | 1,580.56 |
Server storage [IO: ▲25.12MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Total filesystem usage should be limited to 25MB (currently using 25.12MB)
Filesystem: 1,169 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
get-directions_donate |
fs_accounts |
get-directions_review |
fs_debug_mode |
Browser metrics Passed 4 tests
Get Directions Map: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,954 ▲200 | 18.54 ▲2.95 | 64.88 ▲59.01 | 2.58 ▼0.76 |
Dashboard /wp-admin | 2,929 ▲78 | 6.25 ▼0.04 | 125.91 ▼11.84 | 177.55 ▲10.23 |
Posts /wp-admin/edit.php | 2,734 ▲49 | 3.26 ▲0.02 | 67.73 ▲1.73 | 167.17 ▲17.24 |
Add New Post /wp-admin/post-new.php | 1,684 ▼33 | 16.58 ▼4.53 | 417.86 ▼27.70 | 147.93 ▼11.89 |
Media Library /wp-admin/upload.php | 1,741 ▲46 | 5.70 ▲0.20 | 142.52 ▼5.69 | 207.26 ▲21.29 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,434 | 2.56 | 57.17 | 112.87 |
MapQuest - Get Directions /wp-admin/options-general.php?page=get-directions-settings | 1,532 | 2.74 | 58.92 | 176.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/get-directions/includes/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 6 options in the database
- fs_active_plugins
- fs_debug_mode
- fs_gdpr
- get-directions_review
- fs_accounts
- get-directions_donate
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/get-directions/includes/vendor/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/get-directions/templates/widget.php
- > /wp-content/plugins/get-directions/templates/shortcode_layout_1.php
- > /wp-content/plugins/get-directions/includes/vendor/cmb2/apigen/hook-docs.php
- > /wp-content/plugins/get-directions/includes/vendor/matomo/device-detector/misc/statistics.php
- > /wp-content/plugins/get-directions/includes/vendor/mustangostang/spyc/examples/yaml-load.php
- 287× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Client\\ClientParserAbstract' not found in wp-content/plugins/get-directions/includes/vendor/piwik/device-detector/Parser/Client/Browser.php:19
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Tests\\Common\\Cache\\CacheTest' not found in wp-content/plugins/get-directions/includes/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ApcuCacheTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/get-directions/includes/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/get-directions/includes/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Tests\\Common\\Cache\\BaseFileCacheTest' not found in wp-content/plugins/get-directions/includes/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/get-directions/includes/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/get-directions/includes/vendor/matomo/device-detector/Tests/Parser/Client/LibraryTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/get-directions/includes/vendor/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/get-directions/includes/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MongoDBCache.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/get-directions/includes/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: responsive map, map, maps, directions, get directions...
get-directions/get-directions.php Passed 13 tests
The main PHP file in "Get Directions Map" ver. 2.15.9 adds more information about the plugin and also serves as the entry point for this plugin
42 characters long description:
Map with directions display using MapQuest
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin694,082 lines of code in 861 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 139 | 4,505 | 3,414 | 557,266 |
PHP | 443 | 13,951 | 31,030 | 59,786 |
PO File | 136 | 22,921 | 28,904 | 50,926 |
JSON | 2 | 0 | 0 | 6,955 |
CSS | 37 | 522 | 1,369 | 5,941 |
SVG | 15 | 0 | 0 | 5,364 |
Sass | 52 | 767 | 109 | 4,256 |
JavaScript | 28 | 682 | 905 | 3,215 |
XML | 6 | 30 | 15 | 187 |
Ant | 1 | 13 | 0 | 97 |
reStructuredText | 1 | 83 | 96 | 82 |
INI | 1 | 1 | 0 | 7 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 19.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 347 | |
▷ Abstract classes | 27 | 7.78% |
▷ Concrete classes | 320 | 92.22% |
▷ Final classes | 2 | 0.62% |
Methods | 2,994 | |
▷ Static methods | 376 | 12.56% |
▷ Public methods | 2,187 | 73.05% |
▷ Protected methods | 395 | 13.19% |
▷ Private methods | 412 | 13.76% |
Functions | 188 | |
▷ Named functions | 159 | 84.57% |
▷ Anonymous functions | 29 | 15.43% |
Constants | 231 | |
▷ Global constants | 118 | 51.08% |
▷ Class constants | 113 | 48.92% |
▷ Public constants | 109 | 96.46% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
63 PNG files occupy 0.21MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
images/map-pin.png | 0.45KB | 0.33KB | ▼ 25.92% |
includes/vendor/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/vendor/cmb2/apigen/theme-bootstrap/src/resources/sort.png | 0.17KB | 0.12KB | ▼ 30.41% |