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.23MB] [CPU: ▼9.53ms] Passed 4 tests
Server-side resources used by TraveledMap Trip itinerary: Embedded map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 40.17 ▼2.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.67 ▼2.63 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.00 ▲1.61 |
Add New Post /wp-admin/post-new.php | 4.88 ▼1.01 | 57.13 ▼34.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.14 ▲1.39 |
Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_traveledmap_trip_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for TraveledMap Trip itinerary: Embedded map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.22 ▼1.53 | 4.39 ▲2.31 | 43.64 ▼1.41 |
Dashboard /wp-admin | 2,209 ▲18 | 5.79 ▲0.72 | 94.03 ▼13.45 | 41.79 ▼4.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.04 | 35.63 ▲0.55 | 35.94 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6,304 ▲4,776 | 19.27 ▼3.89 | 877.58 ▲200.27 | 64.06 ▲9.41 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▼0.01 | 94.78 ▼8.03 | 42.56 ▼1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_traveledmap_trip_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/traveledmap-trip-itinerary-embedded-map/src/widget/shortcode.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/traveledmap-trip-itinerary-embedded-map/src/metabox/metabox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/traveledmap-trip-itinerary-embedded-map/src/widget/widget.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: map, embed, pictures, blog, traveledmap...
traveledmap-trip-itinerary-embedded-map/plugin.php 92% from 13 tests
The main PHP file in "TraveledMap Trip itinerary: Embedded map" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("traveledmap-trip-itinerary-embedded-map.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
No dangerous file extensions were detected1,691 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 124 | 43 | 786 |
JavaScript | 5 | 28 | 34 | 377 |
JSON | 2 | 0 | 0 | 207 |
Sass | 2 | 49 | 1 | 176 |
Markdown | 1 | 12 | 0 | 143 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 13 | |
▷ Static methods | 8 | 61.54% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 23.08% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 2.55MB with 1.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/metabox.png | 9.11KB | 3.71KB | ▼ 59.27% |
assets/banner-772x250.png | 156.64KB | 54.81KB | ▼ 65.01% |
assets/example-2.png | 995.85KB | 406.81KB | ▼ 59.15% |
assets/example-1.png | 740.13KB | 236.87KB | ▼ 68.00% |
assets/widget-config.png | 61.42KB | 20.64KB | ▼ 66.39% |