79% woocompany015

Code Review | WooCompany015

WordPress plugin WooCompany015 scored79%from 54 tests.

About plugin

  • Plugin page: woocompany015
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Dec 5, 2019
  • Latest release: Apr 7, 2020
  • Number of updates: 5
  • Update frequency: every 25.0 days
  • Top authors: mediapromotionsrl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.52ms] Passed 4 tests

This is a short check of server-side resources used by WooCompany015
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.05 ▼2.10
Dashboard /wp-admin3.33 ▲0.0245.89 ▼2.35
Posts /wp-admin/edit.php3.38 ▲0.0246.48 ▼0.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.20 ▼21.17
Media Library /wp-admin/upload.php3.25 ▲0.0231.86 ▼0.03
Aiuto /wp-admin/admin.php?page=woocompany-menu33.2128.77
Registro Eventi /wp-admin/admin.php?page=woocompany-menu23.2130.27
Configurazione /wp-admin/admin.php?page=woocompany-menu3.1930.16

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

Input-output and database impact of this plugin
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_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WooCompany015: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.32 ▼1.051.70 ▼0.6043.98 ▼2.46
Dashboard /wp-admin2,237 ▲494.85 ▼0.03106.64 ▲4.6537.14 ▼4.73
Posts /wp-admin/edit.php2,117 ▲282.02 ▼0.0336.83 ▼6.3833.73 ▼2.50
Add New Post /wp-admin/post-new.php1,562 ▲4823.16 ▲5.44688.49 ▲73.7849.77 ▼1.29
Media Library /wp-admin/upload.php1,419 ▲284.21 ▼0.0392.67 ▼6.0340.65 ▼1.82
Aiuto /wp-admin/admin.php?page=woocompany-menu39282.0221.7228.65
Registro Eventi /wp-admin/admin.php?page=woocompany-menu27932.0223.9228.05
Configurazione /wp-admin/admin.php?page=woocompany-menu9142.0323.7032.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocompany-menu
    • > Notice in wp-content/plugins/woocompany015/woocompany015.php+150
    Trying to access array offset on value of type bool

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/woocompany015/woocompany015.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: gestione ordini, codice destinatario, fattura elettronica, fattura xml, woocommerce...

woocompany015/woocompany015.php Passed 13 tests

The principal PHP file in "WooCompany015" v. 1.1.0 is loaded by WordPress automatically on each request
39 characters long description:
integrazione WooCommerce con COMPANY015

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin347 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18117347

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin