84% integracao-entre-woo-e-monetizze-powerful

Code Review | Integração entre Woo e Monetizze - Powerful

WordPress plugin Integração entre Woo e Monetizze - Powerful scored84%from 54 tests.

About plugin

  • Plugin page: integracao-entre-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2022
  • Latest release: Aug 1, 2022
  • Number of updates: 3
  • Update frequency: every 49.7 days
  • Top authors: felipe152 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Integração entre Woo e Monetizze - Powerful
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.64 ▼4.47
Dashboard /wp-admin3.33 ▲0.0251.87 ▼0.54
Posts /wp-admin/edit.php3.38 ▲0.0251.46 ▲2.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.67 ▼13.49
Media Library /wp-admin/upload.php3.25 ▲0.0237.95 ▼2.06

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integração entre Woo e Monetizze - Powerful
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.031.70 ▲0.0543.53 ▲1.31
Dashboard /wp-admin2,208 ▲315.53 ▲0.0186.64 ▼2.3840.20 ▼3.90
Posts /wp-admin/edit.php2,113 ▲131.99 ▲0.0234.16 ▼5.1632.16 ▼0.63
Add New Post /wp-admin/post-new.php1,548 ▲1318.36 ▲0.31602.65 ▼18.7067.98 ▲6.70
Media Library /wp-admin/upload.php1,416 ▲164.18 ▼0.0699.39 ▲1.2444.06 ▼0.09

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
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: editable_roles in wp-content/plugins/integracao-entre-woo-e-monetizze-powerful/admin/views/wmp-settings-startview.php on line 14
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/integracao-entre-woo-e-monetizze-powerful/admin/views/wmp-settings-startview.php on line 23
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/integracao-entre-woo-e-monetizze-powerful/admin/views/wmp-settings-startview.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/integracao-entre-woo-e-monetizze-powerful/admin/views/wmp-settings-startview.php:33
    • > PHP Notice
      Undefined variable: editable_roles in wp-content/plugins/integracao-entre-woo-e-monetizze-powerful/admin/views/wmp-settings-startview.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === integracao-entre-woo-e-monetizze-powerful === )
Please take inspiration from this readme.txt

integracao-entre-woo-e-monetizze-powerful/wmp-powers.php 92% from 13 tests

The primary PHP file in "Integração entre Woo e Monetizze - Powerful" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("integracao-entre-woo-e-monetizze-powerful.php" instead of "wmp-powers.php")

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
There were no executable files found in this plugin1,241 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS1631775
PHP55212352
JavaScript1130114

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.50
▷ Minimum class complexity10.00
▷ Maximum class complexity29.00
Average method complexity6.29
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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 were not PNG files found in your plugin