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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 146.98 ▲103.25 |
Dashboard /wp-admin | 2.82 ▼0.48 | 163.83 ▲112.78 |
Posts /wp-admin/edit.php | 2.82 ▼0.53 | 143.34 ▲92.97 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 145.47 ▲42.54 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 145.11 ▲110.10 |
Dashboard /wp-admin/admin.php?page=eng_main | 2.82 | 142.87 |
Layouts /wp-admin/admin.php?page=eng_my_plugin_options | 2.82 | 148.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.72 ▲0.49 | 2.14 ▲0.24 | 42.63 ▼3.61 |
Dashboard /wp-admin | 2,209 ▲32 | 5.55 ▼0.15 | 92.45 ▲4.67 | 71.76 ▲30.31 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.99 ▼0.02 | 33.96 ▼7.52 | 33.90 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,701 ▲173 | 20.23 ▼2.80 | 729.97 ▲95.87 | 53.24 ▲3.90 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.11 ▼0.04 | 104.17 ▲3.17 | 61.56 ▲14.86 |
Dashboard /wp-admin/admin.php?page=eng_main | 1,392 | 3.34 | 77.55 | 53.69 |
Layouts /wp-admin/admin.php?page=eng_my_plugin_options | 986 | 2.02 | 36.78 | 29.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 51 | 15 | 256 |
CSS | 1 | 3 | 0 | 28 |
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 code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/menu-logo.png | 3.13KB | 0.50KB | ▼ 83.89% |