72% wp-taxi-me

Code Review | WP Taxi Me

WordPress plugin WP Taxi Me scored72%from 54 tests.

About plugin

  • Plugin page: wp-taxi-me
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2014
  • Latest release: Nov 22, 2019
  • Number of updates: 29
  • Update frequency: every 66.0 days
  • Top authors: rhyswynne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /7,489 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.11MB] [CPU: ▼2.24ms] Passed 4 tests

A check of server-side resources used by WP Taxi Me
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.72 ▼1.16
Dashboard /wp-admin3.42 ▲0.1251.84 ▲1.27
Posts /wp-admin/edit.php3.53 ▲0.1850.48 ▲0.69
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.57 ▼7.09
Media Library /wp-admin/upload.php3.34 ▲0.1138.91 ▼1.41
WP Taxi Me /wp-admin/options-general.php?page=wptaxime_options_page3.2934.86

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_wp_taxi_me_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Taxi Me
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.35 ▲0.002.06 ▲0.3140.78 ▼3.23
Dashboard /wp-admin2,212 ▲355.52 ▼0.1495.44 ▼12.4243.23 ▼12.35
Posts /wp-admin/edit.php2,123 ▲201.99 ▲0.0543.81 ▲3.4837.95 ▲0.00
Add New Post /wp-admin/post-new.php1,540 ▲1423.03 ▼0.22659.25 ▼35.9750.02 ▼3.14
Media Library /wp-admin/upload.php1,420 ▲204.22 ▲0.0299.92 ▼19.1943.27 ▼6.37
WP Taxi Me /wp-admin/options-general.php?page=wptaxime_options_page1,4187.52236.2690.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_wp_taxi_me_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wptaxime_options_page
    • > Notice in wp-content/plugins/wp-taxi-me/inc/options.php+276
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(WP_TAXI_ME_PLUGIN_PATH/inc/options.php): failed to open stream: No such file or directory in wp-content/plugins/wp-taxi-me/inc/core.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-taxi-me/inc/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-taxi-me/inc/display-options.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-taxi-me/index.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-taxi-me/inc/widget.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_TAXI_ME_PLUGIN_PATH/inc/options.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-taxi-me/inc/core.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-taxi-me/inc/admin-notices.php:20
    • > PHP Warning
      Use of undefined constant WP_TAXI_ME_PLUGIN_PATH - assumed 'WP_TAXI_ME_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-taxi-me/inc/core.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wptaxime_options_page
    • > Network (severe)
    http://platform.stumbleupon.com/1/widgets.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=wptaxime_options_page
    • > Javascript (severe) in unknown
    https://button.buffer.com/button/?id=61252719bcf0497f&url=https%3A%2F%2Fwinwar.co.uk%2Fplugins%2Fwp-taxi-me%2F&text=Just%20been%20using%20WP%20Taxi%20Me%20%23WordPress%20plugin&via=winwaruk&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwptaxime_options_page&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
    • > GET request to /wp-admin/options-general.php?page=wptaxime_options_page
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

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
3 plugin tags: uber, business, taxi

wp-taxi-me/index.php 92% from 13 tests

The primary PHP file in "WP Taxi Me" version 2.6.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-taxi-me.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin565 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP620554414
CSS2223151

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin