84% elta-order-tracking

Code Review | ELTA Order Tracking

WordPress plugin ELTA Order Tracking scored84%from 54 tests.

About plugin

  • Plugin page: elta-order-tracking
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2021
  • Latest release: Jun 23, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: frontseries (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /455 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.02MB] [CPU: ▼11.01ms] Passed 4 tests

This is a short check of server-side resources used by ELTA Order Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.86 ▼11.04
Dashboard /wp-admin3.33 ▲0.0247.41 ▼7.88
Posts /wp-admin/edit.php3.38 ▲0.0250.87 ▼5.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.46 ▼19.39
Media Library /wp-admin/upload.php3.25 ▲0.0240.82 ▲1.76

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

ELTA Order Tracking: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.66 ▼0.965.36 ▲3.5939.49 ▼5.49
Dashboard /wp-admin2,206 ▲215.83 ▼0.21100.62 ▼10.6941.34 ▼3.35
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.1343.51 ▲3.6637.52 ▲2.52
Add New Post /wp-admin/post-new.php1,533 ▼023.52 ▲0.58639.22 ▲20.4263.03 ▼15.41
Media Library /wp-admin/upload.php1,385 ▼34.25 ▼0.02100.60 ▼17.4043.06 ▼2.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/elta-order-tracking/elta-order-tracking.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: tracking, order, elta

elta-order-tracking/elta-order-tracking.php Passed 13 tests

The principal PHP file in "ELTA Order Tracking" v. 1.0.3 is loaded by WordPress automatically on each request
97 characters long description:
Let the users track ELTA orders from your website. Use the shortcode [elta-tracking] to any page.

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
No dangerous file extensions were detected164 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1302285
CSS17047
JavaScript16026
SVG1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin