83% tracking-for-fedex-usps

Code Review | Tracking for Fedex USPS

WordPress plugin Tracking for Fedex USPS scored83%from 54 tests.

About plugin

  • Plugin page: tracking-for-fede...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.4
  • WordPress version: 6.3.1
  • First release: Oct 4, 2019
  • Latest release: Apr 19, 2020
  • Number of updates: 6
  • Update frequency: every 33.0 days
  • Top authors: softwareelites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Tracking for Fedex USPS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.86 ▼2.07
Dashboard /wp-admin3.33 ▼0.0248.14 ▼12.22
Posts /wp-admin/edit.php3.38 ▲0.0243.63 ▼1.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.08 ▼14.77
Media Library /wp-admin/upload.php3.25 ▲0.0231.44 ▼3.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Tracking for Fedex USPS: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.17 ▼0.411.76 ▼0.2143.85 ▲3.12
Dashboard /wp-admin2,192 ▲185.51 ▼0.0784.68 ▲0.0236.96 ▼3.17
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0533.35 ▼2.3035.10 ▲0.54
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.00672.12 ▲0.2555.48 ▼1.65
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.0497.78 ▼11.3843.17 ▼2.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tracking-for-fedex-usps/tracking-fedex-usps.php:156

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% 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 your attention:
  • Requires php: Version format is invalid
You can look at the official readme.txt

tracking-for-fedex-usps/tracking-fedex-usps.php 85% from 13 tests

The main PHP script in "Tracking for Fedex USPS" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tracking-for-fedex-usps.php" instead of "tracking-fedex-usps.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22018138

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin