90% traderunner

Code Review | Trade Runner

WordPress plugin Trade Runner scored90%from 54 tests.

About plugin

  • Plugin page: traderunner
  • Plugin version: 3.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-6.3.1
  • WordPress version: 6.3.1
  • First release: May 19, 2019
  • Latest release: Aug 30, 2023
  • Number of updates: 13
  • Update frequency: every 120.5 days
  • Top authors: citybeachsoftware (53.85%)tmtraderunner (53.85%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Trade Runner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.89 ▲0.18
Dashboard /wp-admin3.35 ▲0.0449.64 ▲1.58
Posts /wp-admin/edit.php3.46 ▲0.1049.18 ▲0.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.90 ▼10.23
Media Library /wp-admin/upload.php3.27 ▲0.0438.32 ▼0.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Trade Runner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.17 ▼0.182.04 ▲0.2945.40 ▲2.37
Dashboard /wp-admin2,198 ▲275.64 ▲0.0683.13 ▼14.2539.20 ▼16.47
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0638.85 ▲1.6738.75 ▲0.52
Add New Post /wp-admin/post-new.php1,526 ▼523.65 ▲0.58650.52 ▲50.1849.63 ▼4.64
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0697.53 ▼3.4344.77 ▼0.48

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: traderunner, woocommerce, trademe

traderunner/traderunner.php Passed 13 tests

The principal PHP file in "Trade Runner" v. 3.12 is loaded by WordPress automatically on each request
36 characters long description:
Connect your WooCommerce to Trade Me

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected350 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38518350

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.50
▷ Minimum class complexity12.00
▷ Maximum class complexity13.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected