84% transizroutes

Code Review | Transiz Routes - Transport and Freight

WordPress plugin Transiz Routes - Transport and Freight scored84%from 54 tests.

About plugin

  • Plugin page: transizroutes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2014
  • Latest release: Jun 6, 2016
  • Number of updates: 15
  • Update frequency: every 38.2 days
  • Top authors: Transiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,621 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.17ms] Passed 4 tests

Server-side resources used by Transiz Routes - Transport and Freight
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.60 ▼2.38
Dashboard /wp-admin3.31 ▲0.0155.59 ▼0.97
Posts /wp-admin/edit.php3.37 ▲0.0152.74 ▼9.37
Add New Post /wp-admin/post-new.php5.90 ▲0.01110.75 ▲1.73
Media Library /wp-admin/upload.php3.24 ▲0.0040.03 ▲0.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Transiz Routes - Transport and Freight
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.251.65 ▼0.1351.80 ▲6.05
Dashboard /wp-admin2,206 ▲354.89 ▼0.93116.31 ▼1.5950.30 ▲3.22
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0040.92 ▼1.3737.77 ▼2.39
Add New Post /wp-admin/post-new.php1,533 ▼022.82 ▼0.29667.78 ▼77.8056.89 ▼11.67
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.08121.26 ▼3.9950.40 ▼10.11

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transizroutes/transiz-routes.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

transizroutes/transiz-routes.php 92% from 13 tests

"Transiz Routes - Transport and Freight" version 1.0'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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("transizroutes.php" instead of "transiz-routes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14718

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin