90% travelmap-blog

Code Review | Travel Map

WordPress plugin Travel Map scored 90% from 54 tests.

About plugin

  • Plugin page: travelmap-blog
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2016
  • Latest release: Jul 22, 2023
  • Number of updates: 117
  • Update frequency: every 21.1 days
  • Top authors: travelmap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 11,825 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.58ms] Passed 4 tests

This is a short check of server-side resources used by Travel Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.49 ▼4.18
Dashboard /wp-admin3.36 ▲0.0550.60 ▼1.21
Posts /wp-admin/edit.php3.47 ▲0.1152.11 ▲1.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.15 ▼5.37
Media Library /wp-admin/upload.php3.28 ▲0.0535.40 ▼3.57

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_travelmap_widget
widget_travelmap_iframe
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Travel Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲2213.31 ▼1.091.82 ▼0.1642.70 ▼4.30
Dashboard /wp-admin2,253 ▲505.03 ▲0.18107.16 ▲0.4237.93 ▼4.93
Posts /wp-admin/edit.php2,136 ▲442.02 ▼0.0039.77 ▲3.9634.85 ▲2.20
Add New Post /wp-admin/post-new.php1,540 ▲1223.42 ▲0.31636.98 ▼107.6647.95 ▼14.74
Media Library /wp-admin/upload.php1,439 ▲514.25 ▲0.1097.29 ▼5.1140.92 ▼4.46

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_travelmap_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_travelmap_iframe
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: map, travelmap, itinraire, my maps, route...

travelmap-blog/travelmap-blog.php 92% from 13 tests

The main PHP file in "Travel Map" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin413 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP116030299
PO File1162254
CSS13029
Markdown14022
SVG1009

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin