84% taximap-integration

Code Review | TaxiMap Integration

WordPress plugin TaxiMap Integration scored84%from 54 tests.

About plugin

  • Plugin page: taximap-integration
  • Plugin version: 1.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2015
  • Latest release: Jan 21, 2022
  • Number of updates: 18
  • Update frequency: every 131.1 days
  • Top authors: nimusdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /7,306 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by TaxiMap Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.88 ▼2.26
Dashboard /wp-admin3.34 ▲0.0447.07 ▼1.28
Posts /wp-admin/edit.php3.39 ▲0.0448.43 ▼5.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.64 ▲0.09
Media Library /wp-admin/upload.php3.26 ▲0.0435.66 ▼0.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TaxiMap Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.53 ▼0.881.91 ▲0.0541.40 ▼4.68
Dashboard /wp-admin2,219 ▲314.88 ▼1.02136.80 ▲29.9652.90 ▲9.03
Posts /wp-admin/edit.php2,108 ▲222.06 ▲0.0439.43 ▼2.3335.03 ▼2.78
Add New Post /wp-admin/post-new.php1,555 ▲1218.71 ▲0.49598.92 ▼4.2249.13 ▼8.05
Media Library /wp-admin/upload.php1,407 ▲194.16 ▼0.0696.97 ▼1.9344.16 ▲1.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_taximapwidget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taximap-integration/TaxiMap-integration.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
Please take inspiration from this readme.txt

taximap-integration/TaxiMap-integration.php 92% from 13 tests

The primary PHP file in "TaxiMap Integration" version 1.1.10 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("taximap-integration.php" instead of "TaxiMap-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin134 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13325113
CSS13120
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png17.03KB6.01KB▼ 64.71%
assets/icon-256x256.png50.12KB16.23KB▼ 67.62%
fullscreen_icon.png0.40KB0.23KB▼ 42.86%