Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼12.14ms] Passed 4 tests
An overview of server-side resources used by wp-travelermap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.33 ▲0.20 |
Dashboard /wp-admin | 3.57 ▲0.22 | 50.15 ▼10.37 |
Posts /wp-admin/edit.php | 3.65 ▲0.28 | 51.67 ▼2.71 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.29 | 79.47 ▼35.66 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.38 ▲5.92 |
Edit Map /wp-admin/admin.php?page=travelermap_editmap | 3.34 | 32.23 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 771 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_travelermap_maps |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
travelermap_settings |
travelermap_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
travelermap_version |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-travelermap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,311 ▲565 | 16.88 ▲2.49 | 12.35 ▲10.51 | 41.32 ▼2.92 |
Dashboard /wp-admin | 2,534 ▲357 | 7.57 ▲2.02 | 136.39 ▲44.20 | 42.55 ▼1.58 |
Posts /wp-admin/edit.php | 2,462 ▲365 | 4.35 ▲2.36 | 58.65 ▲18.21 | 31.83 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,618 ▲92 | 23.66 ▲0.55 | 662.09 ▲24.34 | 35.87 ▼13.90 |
Media Library /wp-admin/upload.php | 1,600 ▲200 | 5.77 ▲1.58 | 105.69 ▲1.58 | 43.03 ▼3.94 |
Edit Map /wp-admin/admin.php?page=travelermap_editmap | 3,771 | 4.22 | 55.63 | 46.56 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=travelermap_editmap
- > Notice in wp-content/plugins/wp-travelermap/admin/travelermap-editmap.php+60
Undefined variable: map
- > GET request to /wp-admin/admin.php?page=travelermap_editmap
- > Notice in wp-content/plugins/wp-travelermap/admin/travelermap-editmap.php+60
Trying to get property 'id' of non-object
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-travelermap/admin/travelermap-editmap.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/wp-travelermap/admin/travelermap-install.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-travelermap/admin/travelermap-ajax.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-travelermap/frontend/travelermap-frontend.php:25
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/wp-travelermap/uninstall.php:31
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-travelermap/uninstall.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-travelermap/admin/travelermap-upgrade.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-travelermap/includes/travelermap-leaflet.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-travelermap/admin/travelermap-admin.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=travelermap_editmap
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Map List), #2 (Map Edit), #3 (Map Display)
wp-travelermap/wp-travelermap.php Passed 13 tests
"wp-travelermap" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
A simple Plugin to create travel routes and manage maps
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,851 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 2,673 | 884 | 10,349 |
CSS | 8 | 197 | 117 | 2,397 |
PHP | 11 | 88 | 246 | 558 |
SVG | 1 | 0 | 0 | 504 |
Markdown | 1 | 14 | 0 | 43 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
729 PNG files occupy 0.98MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/mapsymbols/palace-2.png | 0.96KB | 0.60KB | ▼ 37.17% |
media/mapsymbols/pyramid.png | 1.08KB | 0.88KB | ▼ 18.46% |
media/mapsymbols/parkandride.png | 0.71KB | 0.49KB | ▼ 30.98% |
media/mapsymbols/powerplant.png | 1.46KB | 1.22KB | ▼ 16.61% |
media/mapsymbols/templehindu.png | 0.77KB | 0.52KB | ▼ 31.77% |