84% transportersio

Code Review | Transporters.io

WordPress plugin Transporters.io scored84%from 54 tests.

About plugin

  • Plugin page: transportersio
  • Plugin version: 2.0.82
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Nov 28, 2023
  • Number of updates: 296
  • Update frequency: every 9.5 days
  • Top authors: transportersio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /30,675 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
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼5.89ms] Passed 4 tests

An overview of server-side resources used by Transporters.io
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2039.51 ▼2.72
Dashboard /wp-admin3.51 ▲0.1651.20 ▼15.57
Posts /wp-admin/edit.php3.62 ▲0.2655.47 ▲3.58
Add New Post /wp-admin/post-new.php6.24 ▲0.3497.50 ▼4.64
Media Library /wp-admin/upload.php3.42 ▲0.1936.91 ▼0.62

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_quoteform_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Transporters.io: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲29315.13 ▲0.979.01 ▲6.4036.86 ▼6.94
Dashboard /wp-admin2,264 ▲835.84 ▲0.13100.65 ▼7.30100.11 ▲55.73
Posts /wp-admin/edit.php2,187 ▲872.72 ▲0.7547.74 ▲2.8750.71 ▲13.48
Add New Post /wp-admin/post-new.php1,571 ▲4523.42 ▼0.23664.34 ▲20.4332.97 ▼21.91
Media Library /wp-admin/upload.php1,484 ▲815.28 ▲1.11103.00 ▲5.2987.30 ▲45.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_quoteform_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: fixed in wp-content/plugins/transportersio/includes/quoteform_scripts_front.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/transportersio/includes/quoteform_scripts_front.php:1939
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/transportersio/includes/class-quoteform-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can look at the official readme.txt

transportersio/transporters-io.php 92% from 13 tests

The entry point to "Transporters.io" version 2.0.82 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("transportersio.php" instead of "transporters-io.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,456 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP104461883,156
JavaScript142822192,033
PO File127619891,625
SVG200943
CSS714144699

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/transporters-icon.png3.79KB1.09KB▼ 71.19%
images/transporters-logo.png10.79KB3.46KB▼ 67.93%