Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼34.28ms] Passed 4 tests
Analyzing server-side resources used by bbgGoogleMaps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 29.16 ▼8.22 |
Dashboard /wp-admin | 3.00 ▼0.34 | 22.77 ▼35.16 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 31.12 ▼15.54 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 23.23 ▼78.21 |
Media Library /wp-admin/upload.php | 3.00 ▼0.22 | 23.34 ▼8.10 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
bbgGoogleMaps_AccessLevel |
widget_theysaidso_widget |
bbgGoogleMaps_DefaultMarker |
widget_recent-posts |
can_compress_scripts |
bbgGoogleMaps_DefaultMap |
db_upgraded |
bbgGoogleMaps_CurVersion |
widget_recent-comments |
Browser metrics Passed 4 tests
bbgGoogleMaps: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲200 | 15.22 ▲0.64 | 10.77 ▲9.09 | 42.99 ▼0.03 |
Dashboard /wp-admin | 2,230 ▲42 | 5.75 ▲0.86 | 109.06 ▲2.23 | 38.60 ▼1.75 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.49 ▲0.51 | 47.64 ▲5.54 | 33.88 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,546 ▲29 | 23.57 ▲6.03 | 681.48 ▲67.43 | 55.19 ▲3.09 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 5.04 ▲0.87 | 106.89 ▲9.12 | 45.54 ▲2.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/bbggooglemaps/functions/bbg-google-maps-admin.php+26
Undefined variable: bbgGoogleMaps
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- bbgGoogleMaps_DefaultMarker
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- bbgGoogleMaps_CurVersion
- bbgGoogleMaps_AccessLevel
- bbgGoogleMaps_DefaultMap
Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bbggooglemaps/plugin.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bbggooglemaps/templates/single-location.php:1
- > 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 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (The "Free" version of bbgGoogleMaps), #2 (bbgGoogleMaps Tab "Api Key"), #3 (bbgGoogleMaps Tab "Maps"), #4 (bbgGoogleMaps Tab "Marker"), #5 (bbgGoogleMaps Tab "Extensions")
bbggooglemaps/plugin.php 85% from 13 tests
The entry point to "bbgGoogleMaps" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbggooglemaps.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,199 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 141 | 131 | 751 |
CSS | 1 | 35 | 16 | 220 |
PO File | 1 | 61 | 66 | 145 |
JavaScript | 1 | 18 | 5 | 83 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 4 | 13.79% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 21 | 91.30% |
▷ Anonymous functions | 2 | 8.70% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin