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
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼7.70ms] Passed 4 tests
Server-side resources used by Carto: Maps for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 49.42 ▲4.60 |
Dashboard /wp-admin | 3.63 ▲0.33 | 54.53 ▼1.71 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 47.89 ▼10.44 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 98.21 ▼21.59 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 43.03 ▲2.94 |
Carto /wp-admin/options-general.php?page=carto | 3.48 | 40.65 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_carto_map |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Carto: Maps for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲184 | 15.60 ▲1.01 | 24.80 ▲22.73 | 40.32 ▼7.28 |
Dashboard /wp-admin | 2,262 ▲85 | 6.03 ▲0.36 | 119.45 ▲21.99 | 41.63 ▼2.59 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 3.25 ▲1.29 | 49.26 ▲12.06 | 60.43 ▲23.37 |
Add New Post /wp-admin/post-new.php | 6,243 ▲4,715 | 19.98 ▼3.14 | 856.56 ▲171.75 | 34.97 ▼18.40 |
Media Library /wp-admin/upload.php | 1,467 ▲64 | 5.59 ▲1.29 | 116.95 ▲8.77 | 42.69 ▼9.66 |
Carto /wp-admin/options-general.php?page=carto | 905 | 3.12 | 40.66 | 29.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_carto_map
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/carto/src/Core.php
- > /wp-content/plugins/carto/src/Core/Utils/Filter.php
- > /wp-content/plugins/carto/config.php
- > /wp-content/plugins/carto/src/Core/Utils/Asset.php
- > /wp-content/plugins/carto/src/Core/Settings.php
- > /wp-content/plugins/carto/src/Core/Utils/Logger.php
- > /wp-content/plugins/carto/src/Core/Utils/Notice.php
- > /wp-content/plugins/carto/src/Adapters/Widget.php
- > /wp-content/plugins/carto/carto.php
- > /wp-content/plugins/carto/src/Adapters/BlockAdapter.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/carto/templates/admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/carto/templates/settings.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=carto
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key=&libraries=places 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: gutenberg blocks, blocks, block-editor, gutenberg, googlemaps...
carto/carto.php 92% from 13 tests
"Carto: Maps for WordPress" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
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
Everything looks great! No dangerous files found in this plugin1,599 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 451 | 869 | 1,554 |
JavaScript | 7 | 3 | 5 | 21 |
SVG | 18 | 0 | 0 | 18 |
CSS | 5 | 0 | 0 | 5 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 30 | 31.58% |
▷ Public methods | 87 | 91.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.42% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
8 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/css/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/css/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/css/images/marker-alt.png | 1.70KB | 1.12KB | ▼ 34.33% |
assets/css/images/marker-alt-retina.png | 4.07KB | 2.12KB | ▼ 47.86% |