83% woocommerce-frotel

Code Review | WooCommerce Frotel

WordPress plugin WooCommerce Frotel scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-frotel
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Oct 10, 2014
  • Number of updates: 5
  • Update frequency: every 27.2 days
  • Top authors: Domanjiri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.10ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Frotel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.86 ▼1.47
Dashboard /wp-admin3.31 ▼0.0347.08 ▼16.42
Posts /wp-admin/edit.php3.42 ▲0.0747.80 ▼0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.99 ▼13.71
Media Library /wp-admin/upload.php3.23 ▲0.0036.39 ▼0.80

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Frotel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.24 ▼0.112.01 ▲0.1939.86 ▲2.46
Dashboard /wp-admin2,195 ▲175.62 ▼0.0385.92 ▼18.0236.06 ▼9.71
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0335.07 ▼4.2933.01 ▼7.99
Add New Post /wp-admin/post-new.php1,526 ▼023.79 ▲0.67610.66 ▲0.6658.71 ▲5.90
Media Library /wp-admin/upload.php1,403 ▲64.27 ▲0.06100.77 ▼3.0843.23 ▼1.55

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-frotel/frotel.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.xmlschema.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.soap_parser.php:15
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-frotel/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.wsdl.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-frotel/lib/nusoap/class.soap_server.php:16
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-frotel/lib/nusoap/nusoapmime.php on line 42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

woocommerce-frotel/frotel.php 85% from 13 tests

"WooCommerce Frotel" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-frotel.php" instead of "frotel.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,922 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,2935,18112,347
JavaScript2519542
PO File12520
CSS10213

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity74.61
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity8.60
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods368
▷ Static methods00.00%
▷ Public methods36799.73%
▷ Protected methods00.00%
▷ Private methods10.27%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin