84% tickera-affiliatewp

Code Review | AffiliateWP - Tickera Integration

WordPress plugin AffiliateWP - Tickera Integration scored84%from 54 tests.

About plugin

  • Plugin page: tickera-affiliatewp
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 12, 2019
  • Latest release: Jun 23, 2023
  • Number of updates: 5
  • Update frequency: every 306.8 days
  • Top authors: tickera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,281 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.78ms] Passed 4 tests

Server-side resources used by AffiliateWP - Tickera Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.05 ▲2.11
Dashboard /wp-admin3.31 ▲0.0046.68 ▼4.46
Posts /wp-admin/edit.php3.36 ▲0.0050.02 ▼1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.55 ▼7.37
Media Library /wp-admin/upload.php3.23 ▲0.0037.99 ▲2.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for AffiliateWP - Tickera Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼1.121.82 ▼0.3744.86 ▼0.03
Dashboard /wp-admin2,200 ▲125.76 ▲0.88104.63 ▼0.8240.35 ▼6.47
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.27 ▼3.0633.94 ▼4.60
Add New Post /wp-admin/post-new.php1,519 ▲523.16 ▲5.63664.24 ▼13.7363.52 ▲6.84
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.00103.08 ▼11.8746.92 ▼1.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 no errors were found, this is by no means an exhaustive test

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tickera-affiliatewp/affiliatewp-tickera-integration.php:95

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
2 plugin tags: tickera, affiliatewp

tickera-affiliatewp/affiliatewp-tickera-integration.php 92% from 13 tests

The principal PHP file in "AffiliateWP - Tickera Integration" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("tickera-affiliatewp.php" instead of "affiliatewp-tickera-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1222865

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin