Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.51ms] Passed 4 tests
A check of server-side resources used by Google Direction
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.48 ▼0.79 |
Dashboard /wp-admin | 3.46 ▲0.15 | 44.87 ▲0.74 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.75 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 84.86 ▼25.44 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.21 ▲0.38 |
Manage Locations /wp-admin/edit.php?post_type=kg-locations | 3.42 | 35.59 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Direction
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.32 ▼1.24 | 1.94 ▲0.31 | 40.07 ▼0.06 |
Dashboard /wp-admin | 2,268 ▲80 | 5.01 ▼0.90 | 108.96 ▲7.40 | 38.50 ▲0.35 |
Posts /wp-admin/edit.php | 2,151 ▲80 | 2.25 ▲0.21 | 41.13 ▲5.75 | 35.38 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 17.76 ▼0.02 | 679.89 ▲73.61 | 49.30 ▼2.90 |
Media Library /wp-admin/upload.php | 1,453 ▲68 | 4.28 ▲0.09 | 99.46 ▲1.49 | 42.04 ▼4.70 |
Manage Locations /wp-admin/edit.php?post_type=kg-locations | 1,122 | 2.22 | 33.83 | 29.64 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kento-google-maps/kg-locations-cpt.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/kento-google-maps/kg-google-maps.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/kento-google-maps/kg-google-maps-ui.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kento-google-maps/kg-maps-cpt.php:51
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Easily add Google Location For finding Direction from source to destination @ anywhere), #2 (Easy to use user interface, so you don't need to remember attributes), #3 (Simple short code, you can use without UI also)
kento-google-maps/kg-google-maps.php 77% from 13 tests
The primary PHP file in "Google Direction" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 176 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kento-google-maps.php" instead of "kg-google-maps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected805 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 139 | 86 | 573 |
CSS | 3 | 37 | 16 | 165 |
JavaScript | 2 | 15 | 6 | 67 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/followus.png | 10.69KB | 4.12KB | ▼ 61.50% |
images/ui-icons_8c291d_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-bg_fine-grain_10_eceadf_60x60.png | 10.51KB | 1.42KB | ▼ 86.44% |
images/ui-icons_3572ac_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/icon-wpmegm24x24.png | 1.61KB | 1.59KB | ▼ 0.97% |