Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/travelers-map/includes/admin/cttm-admin.php+374
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.12ms] Passed 4 tests
Analyzing server-side resources used by Travelers' Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 43.02 ▲0.44 |
Dashboard /wp-admin | 3.64 ▲0.34 | 49.53 ▼5.73 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 47.81 ▼5.71 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 95.52 ▼9.48 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 49.28 ▲12.12 |
Customize markers /wp-admin/edit.php?post_type=cttm-marker | 3.70 | 59.46 |
Shortcode Helper /wp-admin/admin.php?page=cttm_travelersmap_shortcode | 3.57 | 44.33 |
Settings /wp-admin/admin.php?page=cttm_travelersmap | 3.57 | 43.03 |
Server storage [IO: ▲3.41MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 466 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
cttm_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
travelersmap_version |
db_upgraded |
Browser metrics Passed 4 tests
Travelers' Map: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 14.39 ▲0.20 | 1.73 ▼0.25 | 43.64 ▼1.30 |
Dashboard /wp-admin | 2,261 ▲84 | 5.72 ▲0.03 | 92.02 ▲2.08 | 43.62 ▲0.54 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.19 ▲0.18 | 37.19 ▼2.76 | 35.52 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6,713 ▲5,187 | 20.83 ▲3.31 | 1,074.08 ▲367.16 | 66.87 ▲9.27 |
Media Library /wp-admin/upload.php | 1,655 ▲255 | 4.67 ▲0.40 | 121.68 ▲16.34 | 48.58 ▲2.88 |
Customize markers /wp-admin/edit.php?post_type=cttm-marker | 2,140 | 2.17 | 35.59 | 34.34 |
Shortcode Helper /wp-admin/admin.php?page=cttm_travelersmap_shortcode | 1,554 | 4.02 | 54.38 | 44.38 |
Settings /wp-admin/admin.php?page=cttm_travelersmap | 1,333 | 3.71 | 46.03 | 40.94 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 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
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- travelersmap_version
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 170× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Filter' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Filter/ExtractStyleBlocks.php:25
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/AttrTransform/Textarea.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Lexer' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Lexer/DOMLex.php:27
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Node' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Node/Comment.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Node' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Node/Text.php:12
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/AttrTransform/ScriptRequired.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Injector' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Injector/PurifierLinkify.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/URIScheme/data.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef_HTML_Pixels' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/AttrDef/HTML/Length.php:10
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Injector' not found in wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Injector/RemoveEmpty.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: openstreetmap, travelers, travel blog, leaftlet, geolocalize...
travelers-map/travelers-map.php Passed 13 tests
Analyzing the main PHP file in "Travelers' Map" version 2.2.0
55 characters long description:
Pin your Wordpress posts on a dynamic OpenStreetMap map
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected28,623 lines of code in 280 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 254 | 3,465 | 10,473 | 18,712 |
CSS | 8 | 349 | 65 | 5,682 |
JavaScript | 12 | 434 | 553 | 2,483 |
PO File | 3 | 420 | 467 | 1,481 |
LESS | 1 | 7 | 35 | 256 |
XML | 1 | 1 | 0 | 8 |
INI | 1 | 1 | 1 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 5.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 237 | |
▷ Abstract classes | 15 | 6.33% |
▷ Concrete classes | 222 | 93.67% |
▷ Final classes | 0 | 0.00% |
Methods | 744 | |
▷ Static methods | 45 | 6.05% |
▷ Public methods | 577 | 77.55% |
▷ Protected methods | 85 | 11.42% |
▷ Private methods | 82 | 11.02% |
Functions | 62 | |
▷ Named functions | 61 | 98.39% |
▷ Anonymous functions | 1 | 1.61% |
Constants | 64 | |
▷ Global constants | 6 | 9.38% |
▷ Class constants | 58 | 90.62% |
▷ Public constants | 58 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.91MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cttm_markers-violet.png | 2.19KB | 1.73KB | ▼ 21.09% |
includes/admin/images/excerpt.png | 7.58KB | 4.25KB | ▼ 43.93% |
includes/admin/images/titlethumbdate.png | 120.58KB | 40.26KB | ▼ 66.61% |
images/cttm_markers-orange.png | 1.99KB | 1.78KB | ▼ 10.70% |
includes/public/images/search-icon.png | 3.75KB | 1.56KB | ▼ 58.42% |