78% gss-oca-tarifador

Code Review | GSS_OCA_Tarifador

WordPress plugin GSS_OCA_Tarifador scored78%from 54 tests.

About plugin

  • Plugin page: gss-oca-tarifador
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4
  • WordPress version: 6.3.1
  • First release: Dec 20, 2015
  • Latest release: Dec 20, 2015
  • Number of updates: 17
  • Update frequency: every 2.4 days
  • Top authors: globalsaassolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼6.23ms] Passed 4 tests

An overview of server-side resources used by GSS_OCA_Tarifador
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.73 ▼1.36
Dashboard /wp-admin3.55 ▲0.2447.50 ▲0.98
Posts /wp-admin/edit.php3.60 ▲0.2442.80 ▼0.35
Add New Post /wp-admin/post-new.php6.07 ▲0.1880.20 ▼20.07
Media Library /wp-admin/upload.php3.47 ▲0.2434.97 ▼3.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GSS_OCA_Tarifador
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.43 ▲0.191.70 ▲0.1144.92 ▲6.79
Dashboard /wp-admin2,195 ▲185.53 ▼0.1183.57 ▼7.9939.17 ▼8.04
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0138.18 ▲3.1534.26 ▲0.19
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.32642.68 ▼63.4769.82 ▲8.66
Media Library /wp-admin/upload.php1,394 ▼64.31 ▲0.1497.41 ▲2.3241.89 ▼0.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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/gss-oca-tarifador/GSS_OCA_Tarifador.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/gss-oca-tarifador/lib/nusoap.php on line 7384
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/gss-oca-tarifador/lib/nusoapmime.php on line 136
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/gss-oca-tarifador/lib/class.soap_server.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/gss-oca-tarifador/lib/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/gss-oca-tarifador/lib/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/gss-oca-tarifador/lib/class.soap_val.php:17
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/gss-oca-tarifador/lib/class.nusoap_base.php on line 75
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/gss-oca-tarifador/lib/class.wsdl.php:15
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/gss-oca-tarifador/lib/class.soapclient.php on line 365
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/gss-oca-tarifador/lib/class.xmlschema.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: envios, argentina, shiping, tarifador, oca...

gss-oca-tarifador/GSS_OCA_Tarifador.php 85% from 13 tests

The main PHP file in "GSS_OCA_Tarifador" ver. 1... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gss-oca-tarifador.php" instead of "GSS_OCA_Tarifador.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")

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
There were no executable files found in this plugin18,804 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP143,3707,91718,804

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity32.07
▷ Minimum class complexity1.00
▷ Maximum class complexity377.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes92
▷ Abstract classes00.00%
▷ Concrete classes92100.00%
▷ Final classes00.00%
Methods664
▷ Static methods00.00%
▷ Public methods664100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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