90% wc-show-method-in-orders-list-for-pagseguro

Code Review | WC Show Method in Orders list for PagSeguro

WordPress plugin WC Show Method in Orders list for PagSeguro scored90%from 54 tests.

About plugin

  • Plugin page: wc-show-method-in...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Jul 24, 2015
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: dimdavid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by WC Show Method in Orders list for PagSeguro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.77 ▼4.73
Dashboard /wp-admin3.31 ▲0.0145.44 ▼4.49
Posts /wp-admin/edit.php3.37 ▲0.0150.37 ▼1.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.21 ▼13.24
Media Library /wp-admin/upload.php3.24 ▲0.0132.30 ▼7.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WC Show Method in Orders list for PagSeguro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.27 ▼0.141.88 ▲0.2639.07 ▲0.03
Dashboard /wp-admin2,202 ▲225.58 ▲0.0490.68 ▼2.9645.79 ▲2.52
Posts /wp-admin/edit.php2,110 ▲101.99 ▲0.0240.34 ▲1.8338.25 ▲0.02
Add New Post /wp-admin/post-new.php1,542 ▲1318.10 ▼4.97607.74 ▼86.8571.60 ▲16.96
Media Library /wp-admin/upload.php1,410 ▲164.26 ▲0.0594.98 ▼5.0941.58 ▼4.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: orders list, woocommerce, pagseguro, complements

wc-show-method-in-orders-list-for-pagseguro/wc-show-method-in-orders-list-for-pagseguro.php 92% from 13 tests

The main PHP script in "WC Show Method in Orders list for PagSeguro" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

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 plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115943

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected