83% partnerize-partner

Code Review | Partnerize Partner

WordPress plugin Partnerize Partner scored83%from 54 tests.

About plugin

  • Plugin page: partnerize-partner
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jul 25, 2018
  • Latest release: Aug 21, 2020
  • Number of updates: 4
  • Update frequency: every 189.5 days
  • Top authors: webmasterjunkie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /926 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.07ms] Passed 4 tests

Analyzing server-side resources used by Partnerize Partner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.54 ▼0.71
Dashboard /wp-admin3.38 ▲0.0745.45 ▼4.69
Posts /wp-admin/edit.php3.49 ▲0.1346.86 ▼7.26
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.20 ▼14.52
Media Library /wp-admin/upload.php3.30 ▲0.0735.36 ▼1.81

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: 2 new tables, 9 new options
New tables
wp_partnerize_partner_auth
wp_partnerize_partner_participation
New WordPress options
widget_theysaidso_widget
_partnerize_partner_auth_table
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
_partnerize_partner_version
_partnerize_partner_participation_table
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Partnerize Partner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.54 ▼0.742.02 ▲0.3243.33 ▲0.49
Dashboard /wp-admin2,221 ▲304.92 ▲0.0294.61 ▼5.6859.07 ▲17.78
Posts /wp-admin/edit.php2,107 ▲212.02 ▲0.0235.44 ▼1.4234.78 ▲1.74
Add New Post /wp-admin/post-new.php1,536 ▲1723.18 ▲0.12730.19 ▲67.1967.58 ▲15.54
Media Library /wp-admin/upload.php1,406 ▲214.19 ▼0.04103.37 ▼6.3373.90 ▲27.43

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

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
Even though everything seems fine, this is not 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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/partnerize-partner/class/partnerize_tracking_list.php
    • > /wp-content/plugins/partnerize-partner/functions.php
    • > /wp-content/plugins/partnerize-partner/partnerize_partner.php

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • License uri: Please fix this invalid URI: "LICENSE"
You can look at the official readme.txt

partnerize-partner/partnerize_partner.php 85% from 13 tests

This is the main PHP file of "Partnerize Partner" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("partnerize-partner.php" instead of "partnerize_partner.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected531 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP310375448
JavaScript14183

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods228.57%
▷ Protected methods342.86%
▷ Private methods228.57%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/partnerize_icon.png32.49KB15.08KB▼ 53.57%
assets/16x16-partnerize_icon.png1.54KB0.51KB▼ 66.60%