WordPress plugin Affiliater scored73%from 54 tests.

About plugin

  • Plugin page: indonesia-affilia...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Aug 30, 2017
  • Number of updates: 19
  • Update frequency: every 55.2 days
  • Top authors: danif98 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,075 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▼0.89MB] [CPU: ▼35.08ms] Passed 4 tests

Analyzing server-side resources used by Affiliater
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.16 ▼2.28
Dashboard /wp-admin3.05 ▼0.2527.91 ▼30.39
Posts /wp-admin/edit.php3.06 ▼0.3028.00 ▼25.26
Add New Post /wp-admin/post-new.php3.05 ▼2.8324.88 ▼74.55
Media Library /wp-admin/upload.php3.06 ▼0.1725.35 ▼10.12
Affiliater /wp-admin/options-general.php?page=Affiliater3.0627.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Affiliater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.061.74 ▼0.0541.15 ▼1.37
Dashboard /wp-admin2,199 ▲195.63 ▼0.1193.04 ▲1.9343.29 ▲2.27
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0836.30 ▼0.4932.71 ▼5.20
Add New Post /wp-admin/post-new.php1,529 ▲323.48 ▲0.31692.04 ▲35.7858.65 ▲0.54
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.03104.05 ▼1.3744.65 ▼0.01
Affiliater /wp-admin/options-general.php?page=Affiliater1,1952.0025.8632.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Affiliater
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=Affiliater
    • > Notice in wp-content/plugins/indonesia-affiliater-products-database-for-affiliates-online-shop/affiliater.php+253
    Undefined index: affiliater_updated

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Products in 1 column), #2 (Products in 2 columns), #3 (Products in 3 columns)
You can look at the official readme.txt

indonesia-affiliater-products-database-for-affiliates-online-shop/affiliater.php 85% from 13 tests

The primary PHP file in "Affiliater" version 3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("indonesia-affiliater-products-database-for-affiliates-online-shop.php" instead of "affiliater.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 235 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin351 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13922351

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin