10% sumome

Code Review | Sumo - Boost Conversion and Sales

WordPress plugin Sumo - Boost Conversion and Sales scored10%from 54 tests.

About plugin

  • Plugin page: sumome
  • Plugin version: 1.33
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Dec 1, 2023
  • Number of updates: 137
  • Update frequency: every 26.0 days
  • Top authors: marnietave (49.64%)SumoMe (47.45%)damian.hodgkiss (3.65%)grimmdude (1.46%)

Code review

54 tests

User reviews

519 reviews

Install metrics

30,000+ active /2,284,562 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/sumome/classes/class_sumome.php+167
    Undefined variable: manuallyInsertedScriptTagSiteID

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.95ms] Passed 4 tests

A check of server-side resources used by Sumo - Boost Conversion and Sales
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1034.19 ▼9.04
Dashboard /wp-admin3.41 ▲0.0751.39 ▼12.12
Posts /wp-admin/edit.php3.52 ▲0.1645.50 ▼0.57
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.81 ▼2.07
Media Library /wp-admin/upload.php3.33 ▲0.1034.99 ▲3.34
SiteID /wp-admin/admin.php?page=sumo-siteID3.3031.49
Sumo /wp-admin/admin.php?page=sumo3.3232.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
sumome_initial_wpdashboard_load_time
can_compress_scripts
theysaidso_admin_options
db_upgraded
sumome_site_id
widget_theysaidso_widget
sumome_hide_dashboard_overlay
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sumo - Boost Conversion and Sales
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,505 ▲76915.98 ▲1.276.10 ▲4.4238.09 ▼7.36
Dashboard /wp-admin2,708 ▲5286.64 ▲1.09110.41 ▲24.2091.28 ▲51.42
Posts /wp-admin/edit.php2,241 ▲1413.64 ▲1.6344.03 ▲2.5534.07 ▼4.75
Add New Post /wp-admin/post-new.php1,421 ▼10819.98 ▼3.32564.06 ▼96.3527.85 ▼28.78
Media Library /wp-admin/upload.php1,541 ▲1415.97 ▲1.78102.44 ▲1.9174.48 ▲27.44
SiteID /wp-admin/admin.php?page=sumo-siteID9703.3035.5728.84
Sumo /wp-admin/admin.php?page=sumo1,2333.3133.6850.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 9 options
    • sumome_hide_dashboard_overlay
    • db_upgraded
    • sumome_site_id
    • theysaidso_admin_options
    • sumome_initial_wpdashboard_load_time
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/sumome/views/main.php
    • > /wp-content/plugins/sumome/views/popup.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sumome/js/general.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sumome/views/statistics.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sumome/sumome.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/sumome/js/preload.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sumome/views/landing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sumome/views/footer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sumome/views/wordpress-dashboard-welcome-page.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/sumome/views/siteID.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=sumo-siteID
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=sumo-siteID - Access to XMLHttpRequest at 'http://sumome.com/api/load/' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sumo
    • > Network (severe)
    http://sumome.com/api/load/ - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=sumo
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=sumo - Access to XMLHttpRequest at 'http://sumome.com/api/load/' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (66 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

sumome/sumome.php Passed 13 tests

"Sumo - Boost Conversion and Sales" version 1.33's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Free Tools to automate your site growth from sumome.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,569 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS3151241,581
PHP1120350988

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods413.79%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
23 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/popup-login-header.png39.77KB41.96KB0.00%
images/sumome-site-clients-entrepreneur.png1.07KB1.12KB0.00%
images/sumome-site-welcome-graph.png1.56KB1.63KB0.00%
images/sumome-site-welcome1.png17.59KB19.45KB0.00%
images/sumome-site-welcome3.png17.17KB18.68KB0.00%