78% convertiser-widgets

Code Review | Convertiser Widgets

WordPress plugin Convertiser Widgets scored 78% from 54 tests.

About plugin

  • Plugin page: convertiser-widgets
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jan 9, 2021
  • Number of updates: 28
  • Update frequency: every 46.9 days
  • Top authors: slvr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.93MB] [CPU: ▼3.66ms] Passed 4 tests

This is a short check of server-side resources used by Convertiser Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.8445.16 ▼5.56
Dashboard /wp-admin4.27 ▲0.9653.34 ▲5.66
Posts /wp-admin/edit.php4.32 ▲0.9656.51 ▼3.31
Add New Post /wp-admin/post-new.php6.87 ▲0.9891.24 ▼11.41
Media Library /wp-admin/upload.php4.19 ▲0.9654.61 ▲20.95
Convertiser Widgets /wp-admin/options-general.php?page=convertiser-widgets-settings4.1944.26

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 342 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
convertiser_widgets_version
widget_theysaidso_widget
convertiser_widgets
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Convertiser Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.30 ▼1.284.27 ▲2.1639.22 ▼4.81
Dashboard /wp-admin2,212 ▲215.05 ▼0.84104.74 ▲3.1238.87 ▼5.70
Posts /wp-admin/edit.php2,098 ▲61.99 ▼0.0438.94 ▼5.1734.25 ▼6.89
Add New Post /wp-admin/post-new.php1,519 ▼017.65 ▼5.57675.63 ▲0.4152.61 ▼3.98
Media Library /wp-admin/upload.php1,394 ▲64.25 ▲0.14109.70 ▼5.9157.39 ▲8.52
Convertiser Widgets /wp-admin/options-general.php?page=convertiser-widgets-settings1,7411.8426.7727.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Convertiser\\Widgets\\AbstractProvider' not found in wp-content/plugins/convertiser-widgets/includes/Provider/Menu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/convertiser-widgets/includes/Provider/Notices/wordpress_version.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Convertiser\\Widgets\\Provider\\Widgets\\get_analytics_non_interactive_event() in wp-content/plugins/convertiser-widgets/templates/payday-offers/stacked.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Convertiser\\Widgets\\AbstractProvider' not found in wp-content/plugins/convertiser-widgets/includes/Provider/Settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Convertiser\\Widgets\\Provider\\Widgets\\get_analytics_non_interactive_event() in wp-content/plugins/convertiser-widgets/templates/payday-offers/columns.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/convertiser-widgets/includes/Provider/Help/comparison-widget.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Convertiser\\Widgets\\Provider\\Settings\\Page' not found in wp-content/plugins/convertiser-widgets/includes/Provider/Settings/General.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Convertiser\\Widgets\\Provider\\Widgets\\get_analytics_non_interactive_event() in wp-content/plugins/convertiser-widgets/templates/payday-offers/list.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/convertiser-widgets/includes/Provider/Notices/fixed_shortcake_ui.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Convertiser\\Widgets\\AbstractPlugin' not found in wp-content/plugins/convertiser-widgets/includes/Plugin.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=convertiser-widgets-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/convertiser-widgets/assets/js/bootstrap/bootstrap-prefixed.min.js?ver=1.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    • > GET request to /wp-admin/options-general.php?page=convertiser-widgets-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/convertiser-widgets/assets/js/general.min.js?ver=1.3.1 0:58 Uncaught TypeError: jQuery(...).tooltip is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Setup)
The official readme.txt might help

convertiser-widgets/convertiser-widgets.php Passed 13 tests

The entry point to "Convertiser Widgets" version 1.3.1 is a PHP file that has certain tags in its header comment area
64 characters long description:
Greatly simplifies Convertiser Widgets usage at WordPress sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected34,288 lines of code in 312 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1286,5795,13222,497
PHP551,1372,3625,992
Sass825707852,429
CSS10153901,542
Markdown183270720
HTML3695501
PO File18891221
JSON800182
LESS1115152
SVG21024
YAML10010
Ruby1208
TypeScript1105
make1305

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.06
▷ Minimum class complexity1.00
▷ Maximum class complexity93.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces9
Interfaces2
Traits1
Classes29
▷ Abstract classes310.34%
▷ Concrete classes2689.66%
▷ Final classes00.00%
Methods297
▷ Static methods6321.21%
▷ Public methods28896.97%
▷ Protected methods51.68%
▷ Private methods41.35%
Functions64
▷ Named functions2437.50%
▷ Anonymous functions4062.50%
Constants12
▷ Global constants12100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/help.png0.30KB0.32KB0.00%