84% wp-travel-mapquest

Code Review | WP Travel MapQuest

WordPress plugin WP Travel MapQuest scored84%from 54 tests.

About plugin

  • Plugin page: wp-travel-mapquest
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2018
  • Latest release: Jun 30, 2023
  • Number of updates: 25
  • Update frequency: every 66.8 days
  • Top authors: wptravel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,143 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.88ms] Passed 4 tests

Server-side resources used by WP Travel MapQuest
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.22 ▼1.43
Dashboard /wp-admin3.31 ▲0.0043.39 ▼10.19
Posts /wp-admin/edit.php3.36 ▲0.0046.82 ▲4.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.44 ▼7.54
Media Library /wp-admin/upload.php3.23 ▲0.0036.35 ▲3.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Travel MapQuest
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼1.121.75 ▲0.0440.15 ▼3.63
Dashboard /wp-admin2,206 ▲214.83 ▼1.02106.07 ▲0.0439.43 ▼7.93
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0038.79 ▲0.2934.54 ▼1.11
Add New Post /wp-admin/post-new.php1,514 ▼1617.68 ▼0.51655.63 ▲33.7251.77 ▲5.60
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.01105.73 ▲4.3342.32 ▼3.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_travel_get_map_data() in wp-content/plugins/wp-travel-mapquest/inc/location-tab.php:7

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-travel-mapquest/wp-travel-mapquest.php Passed 13 tests

This is the main PHP file of "WP Travel MapQuest" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Provides Additional Features and functionalities for WP Travel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected720 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP667162353
JavaScript8485284
Sass12045
CSS31138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin