77% logico

Code Review | Logico Bid‑Smart Advertising

WordPress plugin Logico Bid‑Smart Advertising scored77%from 54 tests.

About plugin

  • Plugin page: logico
  • Plugin version: 1.10.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 6.3.1
  • First release: May 4, 2020
  • Latest release: May 19, 2020
  • Number of updates: 11
  • Update frequency: every 1.6 days
  • Top authors: logico3c (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Logico Bid‑Smart Advertising
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.18 ▼5.06
Dashboard /wp-admin3.31 ▲0.0049.77 ▼15.69
Posts /wp-admin/edit.php3.36 ▲0.0050.27 ▼5.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.52 ▼26.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.62 ▼6.74

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Logico Bid‑Smart Advertising
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▲0.051.81 ▼0.0542.49 ▼2.87
Dashboard /wp-admin2,195 ▲155.58 ▲0.0492.83 ▼18.4838.30 ▼5.96
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0140.53 ▲2.0235.14 ▼3.21
Add New Post /wp-admin/post-new.php1,526 ▼1223.69 ▲0.59610.96 ▼74.6850.96 ▼14.63
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.02103.30 ▼2.9743.89 ▼1.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/logico/inc/logicodashboard.php
  • 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: _SESSION in wp-content/plugins/logico/inc/logicodashboard.php on line 148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logico/inc/customfunction.php:35
    • > PHP Notice
      Undefined variable: shop in wp-content/plugins/logico/inc/logicodashboard.php on line 204
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/logico/inc/logicodashboard.php on line 163
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/logico/inc/logicodashboard.php on line 162
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logico/inc/settings.php:37
    • > PHP Warning
      Use of undefined constant LOGICO_PLUGIN_DIR - assumed 'LOGICO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/logico/inc/logicodashboard.php on line 22
    • > PHP Warning
      Use of undefined constant LOGICO_PLUGIN_DIR - assumed 'LOGICO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/logico/inc/logicodashboard.php on line 33
    • > PHP Notice
      Undefined variable: _SESSION in wp-content/plugins/logico/inc/logicodashboard.php on line 320
    • > PHP Notice
      Undefined variable: _SESSION in wp-content/plugins/logico/inc/logicodashboard.php on line 151

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #6, #7 in logico/assets to your readme.txt
The official readme.txt is a good inspiration

logico/logico.php 77% from 13 tests

The main PHP file in "Logico Bid‑Smart Advertising" ver. 1.10.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin101,552 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
SVG50164,273
CSS122,51640026,103
JavaScript142519410,046
PHP7871451,130

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
29 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logico.png5.21KB3.30KB▼ 36.57%
assets/images/select-white.png14.27KB0.17KB▼ 98.78%
assets/images/hover.png0.93KB0.09KB▼ 90.22%
assets/images/user.png8.04KB7.85KB▼ 2.31%
assets/images/close.png1.18KB0.32KB▼ 72.95%