78% voyage-plus

Code Review | Voyage Plus

WordPress plugin Voyage Plus scored78%from 54 tests.

About plugin

  • Plugin page: voyage-plus
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5.3
  • WordPress version: 6.3.1
  • First release: Mar 20, 2013
  • Latest release: Aug 2, 2016
  • Number of updates: 15
  • Update frequency: every 82.1 days
  • Top authors: scui2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,175 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.64ms] Passed 4 tests

An overview of server-side resources used by Voyage Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.76 ▼5.25
Dashboard /wp-admin3.39 ▲0.0544.61 ▼14.53
Posts /wp-admin/edit.php3.50 ▲0.1543.73 ▼6.97
Add New Post /wp-admin/post-new.php5.97 ▲0.0979.09 ▼15.80
Media Library /wp-admin/upload.php3.31 ▲0.0937.54 ▲6.20
Voyage Plus /wp-admin/options-general.php?page=voyageplus3.2633.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Voyage Plus: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.28 ▼1.132.02 ▲0.1940.95 ▼3.34
Dashboard /wp-admin2,213 ▲285.80 ▼0.0895.88 ▼23.8937.44 ▼8.31
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0036.59 ▼0.8534.76 ▲1.16
Add New Post /wp-admin/post-new.php1,517 ▲317.38 ▼0.15679.36 ▲29.6859.49 ▲6.83
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0394.89 ▼4.5241.42 ▼1.35
Voyage Plus /wp-admin/options-general.php?page=voyageplus9441.7524.3032.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=voyageplus
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=voyageplus
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/voyage-plus/inc/actionhooks.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/voyage-plus/inc/shortcodes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voyage-plus/voyageplus.php:345

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: shortcode

voyage-plus/voyageplus.php 85% from 13 tests

"Voyage Plus" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("voyage-plus.php" instead of "voyageplus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,286 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS316744786
PHP36851484
JavaScript13216

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity19.33
▷ Minimum class complexity4.00
▷ Maximum class complexity30.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods622.22%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected