10% glome-basic

Code Review | Glome

WordPress plugin Glome scored10%from 54 tests.

About plugin

  • Plugin page: glome-basic
  • Plugin version: 1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2015
  • Latest release: Oct 13, 2015
  • Number of updates: 13
  • Update frequency: every 9.5 days
  • Top authors: _ferenc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /720 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/glome-basic/includes/one_time_login_widget.php+93
    Function create_function() is deprecated

Server metrics [RAM: ▼2.08MB] [CPU: ▼61.17ms] Passed 4 tests

An overview of server-side resources used by Glome
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.535.86 ▼40.97
Dashboard /wp-admin2.22 ▼1.419.05 ▼53.22
Posts /wp-admin/edit.php2.22 ▼1.466.31 ▼46.28
Add New Post /wp-admin/post-new.php2.22 ▼3.936.74 ▼104.22
Media Library /wp-admin/upload.php2.22 ▼1.277.76 ▼28.66
Glome /wp-admin/options-general.php?page=glome_settings2.228.99

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_glome_show_key
theysaidso_admin_options
glome_plugin_activation_message
widget_glome_one_time_login
widget_glome_scanner
widget_recent-comments
glome_api_domain
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Glome
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18514.26 ▲0.0820.66 ▲18.8242.23 ▲2.23
Dashboard /wp-admin2,206 ▲265.62 ▼0.0393.47 ▼1.1144.41 ▲4.05
Posts /wp-admin/edit.php2,114 ▲142.05 ▲0.0436.61 ▼2.4435.51 ▼2.05
Add New Post /wp-admin/post-new.php1,536 ▼917.39 ▼6.00692.73 ▲27.4057.17 ▲0.48
Media Library /wp-admin/upload.php1,411 ▲84.29 ▲0.09106.37 ▲0.1845.58 ▼4.57
Glome /wp-admin/options-general.php?page=glome_settings7872.0726.9129.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/glome-basic/includes/one_time_login_widget.php+93
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • widget_glome_one_time_login
    • widget_glome_show_qr_widget
    • widget_glome_show_key
    • widget_recent-posts
    • widget_recent-comments
    • widget_glome_scanner
    • glome_plugin_activation_message
    • widget_gnb
    • widget_theysaidso_widget
    • db_upgraded
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=glome_settings
    • > Deprecated in wp-content/plugins/glome-basic/includes/enter_key_widget.php+91
    Function create_function() is deprecated

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/glome-basic/templates/gnb.php
  • 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/glome-basic/includes/show_qr_widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glome-basic/includes/glome_plugin_profile_page.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/glome-basic/includes/show_key_widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glome-basic/includes/ui.php:39
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/glome-basic/templates/key_login.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/glome-basic/templates/show_qr.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glome-basic/includes/glome_plugin_admin_page.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/glome-basic/templates/paired_devices.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/glome-basic/includes/one_time_login_widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/glome-basic/templates/scanner.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: privacy, personalization, anonymity, linking, glome

glome-basic/glome.php 92% from 13 tests

The entry point to "Glome" version 1.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("glome-basic.php" instead of "glome.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,721 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP282532941,524
JavaScript11111175664
PO File2176256294
CSS1354239

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin