Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.23ms] Passed 4 tests
A check of server-side resources used by TCD Google Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 47.61 ▼4.35 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.47 ▼0.81 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.69 ▼3.15 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.54 ▼8.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.52 ▲4.15 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TCD Google Maps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.28 ▲0.01 | 1.76 ▼0.47 | 46.91 ▼0.09 |
Dashboard /wp-admin | 2,205 ▲25 | 5.54 ▼0.13 | 90.88 ▲2.16 | 38.80 ▼5.99 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.96 ▼0.07 | 39.70 ▼0.41 | 35.24 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.31 ▲0.26 | 652.37 ▼4.32 | 60.79 ▲10.45 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.18 ▼0.12 | 106.29 ▲1.38 | 44.10 ▲0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tcd-google-maps/gmaps-options.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tcd-google-maps/gmaps-options.php:202
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tcd-google-maps/design-plus-google-maps.php:46
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 your attention:
- Screenshots: These screenshots require images: #1 (TCD Google Maps Settings), #2 (Google Maps Api Key), #3 (New Styles)
tcd-google-maps/design-plus-google-maps.php 92% from 13 tests
The entry point to "TCD Google Maps" version 1.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("tcd-google-maps.php" instead of "design-plus-google-maps.php")
Code Analysis Passed 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 plugin616 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 90 | 25 | 480 |
PO File | 1 | 25 | 25 | 78 |
CSS | 2 | 5 | 5 | 57 |
JavaScript | 2 | 0 | 295 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
22 compressed PNG files occupy 1.27MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/greyscale.png | 62.75KB | 53.80KB | ▼ 14.26% |
img/elevation.png | 55.66KB | 49.40KB | ▼ 11.24% |
img/red-hat-antwerp.png | 59.39KB | 50.46KB | ▼ 15.04% |
img/light-gray.png | 64.47KB | 55.62KB | ▼ 13.74% |
img/even-lighter.png | 41.93KB | 34.29KB | ▼ 18.21% |