93% 2performant-for-woocommerce

Code Review | 2Performant Advertiser Integration

WordPress plugin 2Performant Advertiser Integration scored 93% from 54 tests.

About plugin

  • Plugin page: 2performant-for-w...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 5.8.1
  • First release: Apr 21, 2021
  • Latest release: Apr 22, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: giucu91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 168 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼140.52ms] Passed 4 tests

This is a short check of server-side resources used by 2Performant Advertiser Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.41 ▲13.32
Dashboard /wp-admin3.08 ▲0.0245.96 ▲1.61
Posts /wp-admin/edit.php3.13 ▲0.0242.92 ▲1.85
Add New Post /wp-admin/post-new.php5.43 ▼0.0088.81 ▼567.79
Media Library /wp-admin/upload.php3.02 ▲0.0233.74 ▲2.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 2Performant Advertiser Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9316.33 ▲0.778.01 ▼1.1452.28 ▲6.64
Dashboard /wp-admin2,967 ▲335.87 ▼0.05139.08 ▲0.06107.95 ▼7.69
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0065.23 ▼2.7089.24 ▼8.05
Add New Post /wp-admin/post-new.php1,500 ▼17218.56 ▼0.52366.56 ▼12.47107.61 ▼2.27
Media Library /wp-admin/upload.php1,810 ▲35.07 ▲0.04150.82 ▼14.04121.13 ▲1.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/2performant-for-woocommerce/twoperformant.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Setări) image not found
The official readme.txt is a good inspiration

2performant-for-woocommerce/twoperformant.php 85% from 13 tests

"2Performant Advertiser Integration" version 1.0.0'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: The principal plugin file should be the same as the plugin slug ("2performant-for-woocommerce.php" instead of "twoperformant.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 programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24242123

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin