78% simple-travel-map

Code Review | Simple Travel Map

WordPress plugin Simple Travel Map scored78%from 54 tests.

About plugin

  • Plugin page: simple-travel-map
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 5
  • Update frequency: every 25.4 days
  • Top authors: thoefter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /3,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.73ms] Passed 4 tests

Analyzing server-side resources used by Simple Travel Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.12 ▼4.77
Dashboard /wp-admin3.35 ▲0.0447.60 ▼8.60
Posts /wp-admin/edit.php3.40 ▲0.0447.59 ▼1.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.81 ▼4.03
Media Library /wp-admin/upload.php3.27 ▲0.0436.24 ▲1.66
Simple Travel Map /wp-admin/options-general.php?page=simple-travel-map-options3.2132.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
simple-travel-map-settings
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Travel Map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲13215.26 ▲0.5319.05 ▲17.1938.80 ▼9.87
Dashboard /wp-admin2,213 ▲244.84 ▼0.11110.05 ▼4.4644.24 ▼2.65
Posts /wp-admin/edit.php2,096 ▲101.99 ▼0.0139.60 ▲4.1034.55 ▼0.00
Add New Post /wp-admin/post-new.php1,536 ▲1723.28 ▼0.14630.41 ▼23.9962.11 ▲9.44
Media Library /wp-admin/upload.php1,386 ▼54.25 ▲0.05100.23 ▼6.6045.29 ▲0.47
Simple Travel Map /wp-admin/options-general.php?page=simple-travel-map-options9492.0322.5332.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=simple-travel-map-options
    • > Notice in wp-content/plugins/simple-travel-map/simple-travel-map.php+45
    Undefined index: save_options
    • > GET request to /wp-admin/options-general.php?page=simple-travel-map-options
    • > Notice in wp-content/plugins/simple-travel-map/simple-travel-map.php+57
    Undefined index: index_locations

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/simple-travel-map/simple-travel-map.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
10 plugin tags: travel, google, api, travel map, simpletravelmap...

simple-travel-map/simple-travel-map.php 92% from 13 tests

This is the main PHP file of "Simple Travel Map" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected266 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1738266

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin