94% ads-with-clusters-by-fulfills

Code Review | Ads With Clusters By FULFILLs

WordPress plugin Ads With Clusters By FULFILLs scored 94% from 54 tests.

About plugin

  • Plugin page: ads-with-clusters...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.2-5.8.2
  • WordPress version: 5.9.2
  • First release: Nov 27, 2021
  • Latest release: Nov 27, 2021
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: fulfills (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 77 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼293.97ms] Passed 4 tests

Server-side resources used by Ads With Clusters By FULFILLs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0854.41 ▲4.89
Dashboard /wp-admin3.49 ▲0.0834.62 ▲2.23
Posts /wp-admin/edit.php3.72 ▲0.0839.36 ▼2.33
Add New Post /wp-admin/post-new.php6.96 ▼0.0293.49 ▼1,178.45
Media Library /wp-admin/upload.php3.37 ▲0.0725.71 ▲2.66
About Us /wp-admin/admin.php?page=ads-with-clusters-by-fulfills3.3422.93
Ad Setting /wp-admin/admin.php?page=ads-with-clusters-by-fulfills-adsetting3.3423.71
Classify /wp-admin/admin.php?page=ads-with-clusters-by-fulfills-classify3.3422.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Ads With Clusters By FULFILLs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4815.91 ▼0.116.42 ▲0.522.32 ▼0.49
Dashboard /wp-admin2,931 ▲706.14 ▼0.06115.48 ▼23.48157.27 ▼6.93
Posts /wp-admin/edit.php2,731 ▲433.25 ▲0.0163.58 ▼2.24142.81 ▲3.94
Add New Post /wp-admin/post-new.php1,715 ▲5420.99 ▲2.78407.43 ▲17.21158.20 ▲3.09
Media Library /wp-admin/upload.php1,737 ▲395.55 ▲0.10144.66 ▼43.76201.92 ▲10.41
About Us /wp-admin/admin.php?page=ads-with-clusters-by-fulfills1,0522.4253.68123.18
Ad Setting /wp-admin/admin.php?page=ads-with-clusters-by-fulfills-adsetting1,0482.4254.43153.13
Classify /wp-admin/admin.php?page=ads-with-clusters-by-fulfills-classify1,1242.4456.23138.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-with-clusters-by-fulfills/js/core.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-with-clusters-by-fulfills/php/get-embeddings.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ads-with-clusters-by-fulfills/php/shortcodes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-with-clusters-by-fulfills/php/classify.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: optimization of display advertising

ads-with-clusters-by-fulfills/ads-with-clusters-by-fulfills.php 92% from 13 tests

The main PHP file in "Ads With Clusters By FULFILLs" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Success! There were no dangerous files found in this plugin356 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ 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