84% alt-monitoring

Code Review | AlT Monitoring

WordPress plugin AlT Monitoring scored84%from 54 tests.

About plugin

  • Plugin page: alt-monitoring
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Jan 5, 2017
  • Number of updates: 11
  • Update frequency: every 54.4 days
  • Top authors: AlTi5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by AlT Monitoring
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0734.20 ▼9.45
Dashboard /wp-admin3.38 ▲0.0446.59 ▼13.91
Posts /wp-admin/edit.php3.49 ▲0.1449.03 ▼2.80
Add New Post /wp-admin/post-new.php5.96 ▲0.0882.23 ▼15.29
Media Library /wp-admin/upload.php3.30 ▲0.0738.76 ▲2.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

AlT Monitoring: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.25 ▼0.381.90 ▼0.0837.24 ▼8.29
Dashboard /wp-admin2,214 ▲345.62 ▲0.0590.08 ▼2.9336.40 ▼3.56
Posts /wp-admin/edit.php2,116 ▲192.00 ▲0.0139.67 ▲4.6237.00 ▲0.63
Add New Post /wp-admin/post-new.php1,539 ▲1322.98 ▲0.10669.01 ▼17.7252.99 ▼4.97
Media Library /wp-admin/upload.php1,413 ▲104.17 ▼0.0393.77 ▼7.8343.13 ▼1.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alt-monitoring/lib/interface/interface-bo.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alt-monitoring/lib/front/Activation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alt-monitoring/lib/interface/alt-monitoring-edit.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alt-monitoring/lib/interface/alt-monitoring-affiche.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/alt-monitoring/alt-monitoring.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alt-monitoring/lib/front/Informations.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (BO interface) image missing
Please take inspiration from this readme.txt

alt-monitoring/alt-monitoring.php Passed 13 tests

The primary PHP file in "AlT Monitoring" version 1.0.3 is used by WordPress to initiate all plugin functionality
74 characters long description:
AlT Monitoring permet d'avoir une vue d'ensemble sur ses différents sites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected606 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1115637606

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.62
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods57
▷ Static methods3561.40%
▷ Public methods5494.74%
▷ Protected methods35.26%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin