10% oxygendigital-token

Code Review | OxygenDigital Token

WordPress plugin OxygenDigital Token scored10%from 54 tests.

About plugin

  • Plugin page: oxygendigital-token
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2021
  • Latest release: Dec 7, 2021
  • Number of updates: 28
  • Update frequency: every 0.9 days
  • Top authors: whitekortex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+51
    Non-static method Oxygendigital_Token_Activator::odmt_activate_system_CURL() should not be called statically

Server metrics [RAM: ▲0.07MB] [CPU: ▲183.49ms] Passed 4 tests

An overview of server-side resources used by OxygenDigital Token
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.11297.83 ▲257.06
Dashboard /wp-admin3.42 ▲0.07297.98 ▲231.74
Posts /wp-admin/edit.php3.47 ▲0.11312.26 ▲259.58
Add New Post /wp-admin/post-new.php5.96 ▲0.07339.13 ▲240.21
Media Library /wp-admin/upload.php3.26 ▲0.0339.04 ▲4.94
OD Web Hook Menu /wp-admin/options-general.php?page=od_webhook3.22283.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by OxygenDigital Token
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.83 ▼0.538.57 ▲6.9043.62 ▲2.87
Dashboard /wp-admin2,203 ▲235.66 ▼0.0190.91 ▲3.6940.09 ▼2.79
Posts /wp-admin/edit.php2,111 ▲81.94 ▼0.1037.55 ▲0.2237.29 ▲4.00
Add New Post /wp-admin/post-new.php1,542 ▲1617.93 ▼5.68651.86 ▼19.5261.12 ▲1.19
Media Library /wp-admin/upload.php1,408 ▲84.19 ▲0.01102.02 ▲0.2543.19 ▼5.25
OD Web Hook Menu /wp-admin/options-general.php?page=od_webhook9021.9923.0928.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+160
    Non-static method Oxygendigital_odmt_Fields::odmt_webhook_render_settings_page_button() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+257
    Non-static method Oxygendigital_odmt_Fields::odmt_get_field_Frequency() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Notice in wp-content/plugins/oxygendigital-token/includes/class-oxygendigital-token-fields.php+49
    Undefined variable: crontime
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+268
    Non-static method Oxygendigital_odmt_Fields::odmt_set_apikey_field() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+279
    Non-static method Oxygendigital_odmt_Fields::odmt_set_name_field() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+289
    Non-static method Oxygendigital_odmt_Fields::odmt_set_heartbeat_respons_echo() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=od_webhook
    • > Deprecated in wp-content/plugins/oxygendigital-token/oxygendigital-token.php+120
    Non-static method Oxygendigital_odmt_Fields::odmt_get_apikeystatus() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/oxygendigital-token/public/partials/oxygendigital-token-public-display.php
    • > /wp-content/plugins/oxygendigital-token/admin/partials/oxygendigital-token-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === oxygendigital-token === )
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.), #2 (This is the second screen shot)
The official readme.txt might help

oxygendigital-token/oxygendigital-token.php Passed 13 tests

"OxygenDigital Token" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
This is for web monitoring purposes only for free version.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin421 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13174632415
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a very shot 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.10
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png39.87KB15.73KB▼ 60.54%