83% woocommerce-parspeik

Code Review | WooCommerce Parspeik

WordPress plugin WooCommerce Parspeik scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-parspeik
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 27, 2014
  • Latest release: May 1, 2016
  • Number of updates: 7
  • Update frequency: every 105.3 days
  • Top authors: Domanjiri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,905 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼9.66ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Parspeik
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1634.14 ▼2.16
Dashboard /wp-admin3.47 ▲0.1243.77 ▼15.13
Posts /wp-admin/edit.php3.58 ▲0.2245.55 ▼2.36
Add New Post /wp-admin/post-new.php6.05 ▲0.1679.64 ▼18.99
Media Library /wp-admin/upload.php3.39 ▲0.1635.30 ▲2.79

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Parspeik
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.441.61 ▼0.0539.76 ▲0.69
Dashboard /wp-admin2,209 ▲214.82 ▼0.06108.91 ▼11.0142.56 ▼4.17
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0240.83 ▲1.4435.42 ▲0.09
Add New Post /wp-admin/post-new.php1,513 ▼2517.46 ▼5.45650.59 ▲31.6974.00 ▲23.66
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0296.00 ▲2.3643.43 ▲0.60

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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
Please fix the following items
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-parspeik/lib/nusoap/nusoapmime.php on line 42
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-parspeik/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.wsdl.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.xmlschema.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.soap_val.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.soap_server.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-parspeik/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woocommerce-parspeik/parspeik.php:25

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

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

The entry point to "WooCommerce Parspeik" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-parspeik.php" instead of "parspeik.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected12,251 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,2535,18112,234
CSS10213
JavaScript20194

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity74.26
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity8.54
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods369
▷ Static methods00.00%
▷ Public methods36899.73%
▷ Protected methods00.00%
▷ Private methods10.27%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin