78% tyxo-monitoring

Code Review | Tyxo Monitoring

WordPress plugin Tyxo Monitoring scored78%from 54 tests.

About plugin

  • Plugin page: tyxo-monitoring
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Oct 21, 2016
  • Number of updates: 38
  • Update frequency: every 0.3 days
  • Top authors: potenselyanin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.69ms] Passed 4 tests

Analyzing server-side resources used by Tyxo Monitoring
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.07 ▼4.63
Dashboard /wp-admin3.36 ▲0.0545.34 ▼1.58
Posts /wp-admin/edit.php3.41 ▲0.0550.11 ▲1.98
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.36 ▼2.54
Media Library /wp-admin/upload.php3.28 ▲0.0539.72 ▲2.27
Live Tracker /wp-admin/admin.php?page=tyxo-menu-last1003.2530.94
Tyxo Monitoring /wp-admin/admin.php?page=tyxo-menu-visit3.2533.24
Uptime /wp-admin/admin.php?page=tyxo-menu-uptime-overview3.2531.98
Settings /wp-admin/admin.php?page=tyxo-menu-settings3.2933.43
Status Page /wp-admin/admin.php?page=tyxo-menu-statuspage3.2531.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 277 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Tyxo Monitoring: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.21 ▼1.161.65 ▼0.1841.72 ▼3.69
Dashboard /wp-admin2,238 ▲505.80 ▲0.94100.52 ▼7.0141.34 ▼2.65
Posts /wp-admin/edit.php2,121 ▲322.04 ▲0.0136.24 ▼3.4532.26 ▼2.96
Add New Post /wp-admin/post-new.php1,561 ▲4223.29 ▲0.04660.40 ▼18.2854.08 ▼1.36
Media Library /wp-admin/upload.php1,423 ▲354.21 ▲0.0299.50 ▼7.1946.12 ▼0.10
Live Tracker /wp-admin/admin.php?page=tyxo-menu-last1008162.1929.2048.37
Tyxo Monitoring /wp-admin/admin.php?page=tyxo-menu-visit8123.4683.6527.16
Uptime /wp-admin/admin.php?page=tyxo-menu-uptime-overview8342.2726.0732.14
Settings /wp-admin/admin.php?page=tyxo-menu-settings9772.2929.8270.78
Status Page /wp-admin/admin.php?page=tyxo-menu-statuspage8342.2926.0131.95

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tyxo-monitoring/lib/pages/uptime/overview.php
    • > /wp-content/plugins/tyxo-monitoring/lib/pages/overview.php
    • > /wp-content/plugins/tyxo-monitoring/lib/pages/tracker/last100.php
    • > /wp-content/plugins/tyxo-monitoring/lib/pages/statuspage/overview.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant TYXO_WEBCHECK_BIG_ID - assumed 'TYXO_WEBCHECK_BIG_ID' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/pages/uptime/overview.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tyxo-monitoring/tyxo-monitoring.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'TyxoClass' not found in wp-content/plugins/tyxo-monitoring/lib/settings/settings.php:55
    • > PHP Warning
      Use of undefined constant TYXO_WEBCHECK_BIG_ID - assumed 'TYXO_WEBCHECK_BIG_ID' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/pages/uptime/overview.php on line 44
    • > PHP Warning
      Use of undefined constant TYXO_API_KEY - assumed 'TYXO_API_KEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/settings/settings.php on line 41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tyxo-monitoring/lib/settings/settings_none_auth.php:16
    • > PHP Warning
      Use of undefined constant TYXO_API_KEY - assumed 'TYXO_API_KEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/pages/overview.php on line 15
    • > PHP Warning
      Use of undefined constant TYXO_TRACKER_BIG_ID - assumed 'TYXO_TRACKER_BIG_ID' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/pages/tracker/last100.php on line 16
    • > PHP Warning
      Use of undefined constant TYXO_TRACKER_BIG_ID - assumed 'TYXO_TRACKER_BIG_ID' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/pages/tracker/last100.php on line 44
    • > PHP Warning
      Use of undefined constant TYXO_API_KEY - assumed 'TYXO_API_KEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/tyxo-monitoring/lib/pages/uptime/overview.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #5 (**Friend Connections** - Let your users make connections so they can track the activity of others, or filter to show only those users they care about the most.), #6 (**Private Messaging** - Private messaging will allow your users to talk to each other directly and in private. Not just limited to one-on-one discussions, your users can send messages to multiple recipients.), #7 (**Site Tracking** - Track posts and comments in the activity stream, and allow your users to add their own blogs using WordPress' Multisite feature.), #8 (**Notifications** - Keep your members up-to-date with relevant activity via toolbar and email notifications.)
You can take inspiration from this readme.txt

tyxo-monitoring/tyxo-monitoring.php 92% from 13 tests

The main PHP file in "Tyxo Monitoring" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin24,521 lines of code in 269 files:
LanguageFilesBlank linesComment linesLines of code
SVG2540023,474
PHP930178638
CSS3747302
JavaScript35354107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.38
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1348.15%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/static/ic/tyxo_logo_bgwhite.png12.41KB6.36KB▼ 48.74%