62% cross-promotion-content-recommendations

Code Review | Cross-Promotion Content Recommendations by Engageya

WordPress plugin Cross-Promotion Content Recommendations by Engageya scored62%from 54 tests.

About plugin

  • Plugin page: cross-promotion-c...
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2012
  • Latest release: Jul 14, 2014
  • Number of updates: 86
  • Update frequency: every 7.5 days
  • Top authors: Engageya.com (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

50+ active /14,155 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.19MB] [CPU: ▲87.22ms] Passed 4 tests

Server-side resources used by Cross-Promotion Content Recommendations by Engageya
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.68146.98 ▲103.25
Dashboard /wp-admin2.82 ▼0.48163.83 ▲112.78
Posts /wp-admin/edit.php2.82 ▼0.53143.34 ▲92.97
Add New Post /wp-admin/post-new.php2.82 ▼3.07145.47 ▲42.54
Media Library /wp-admin/upload.php2.82 ▼0.41145.11 ▲110.10
Dashboard /wp-admin/admin.php?page=eng_main2.82142.87
Layouts /wp-admin/admin.php?page=eng_my_plugin_options2.82148.67

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
engageya_params_user_id
engageya_params_layout_type_id
engageya_params_token
can_compress_scripts
engageya_params_opt
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Cross-Promotion Content Recommendations by Engageya
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.72 ▲0.492.14 ▲0.2442.63 ▼3.61
Dashboard /wp-admin2,209 ▲325.55 ▼0.1592.45 ▲4.6771.76 ▲30.31
Posts /wp-admin/edit.php2,132 ▲291.99 ▼0.0233.96 ▼7.5233.90 ▼6.52
Add New Post /wp-admin/post-new.php1,701 ▲17320.23 ▼2.80729.97 ▲95.8753.24 ▲3.90
Media Library /wp-admin/upload.php1,423 ▲204.11 ▼0.04104.17 ▲3.1761.56 ▲14.86
Dashboard /wp-admin/admin.php?page=eng_main1,3923.3477.5553.69
Layouts /wp-admin/admin.php?page=eng_my_plugin_options9862.0236.7829.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/cross-promotion-content-recommendations/engageya.php+128
    Trying to access array offset on value of type null
  • This plugin does not fully uninstall, leaving 10 options in the database
    • engageya_params_opt
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • engageya_params_token
    • db_upgraded
    • can_compress_scripts
    • engageya_params_layout_type_id
    • engageya_params_user_id
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eng_my_plugin_options
    • > Notice in wp-content/plugins/cross-promotion-content-recommendations/engageya.php+130
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cross-promotion-content-recommendations/engageya_admin.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cross-promotion-content-recommendations/engageya_layouts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cross-promotion-content-recommendations/engageya.php:179

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eng_my_plugin_options
    • > Javascript (warning) in unknown
    /wp-admin/admin.php?page=eng_my_plugin_options 158 A parser-blocking, cross site (i.e. different eTLD+1) script, http://widget.engageya.com/sprk.1.0.2.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cross-promotion-content-recommendations === )
You can take inspiration from this readme.txt

cross-promotion-content-recommendations/engageya.php 85% from 13 tests

The entry point to "Cross-Promotion Content Recommendations by Engageya" version 2.3.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("cross-promotion-content-recommendations.php" instead of "engageya.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin284 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45115256
CSS13028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/menu-logo.png3.13KB0.50KB▼ 83.89%