84% lumturio-wp-monitor

Code Review | Lumturio WP Monitor

WordPress plugin Lumturio WP Monitor scored84%from 54 tests.

About plugin

  • Plugin page: lumturio-wp-monitor
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 18, 2015
  • Latest release: Jan 26, 2022
  • Number of updates: 26
  • Update frequency: every 101.9 days
  • Top authors: lumturioteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Lumturio WP Monitor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.66 ▼3.63
Dashboard /wp-admin3.37 ▲0.0650.68 ▼5.90
Posts /wp-admin/edit.php3.40 ▲0.0448.92 ▼2.58
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.09 ▼17.78
Media Library /wp-admin/upload.php3.29 ▲0.0637.08 ▲4.91

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
lumturio_site_uuid
widget_recent-comments
widget_theysaidso_widget
lumturio_site_encryption_token
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lumturio WP Monitor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.23 ▼0.141.60 ▼0.5539.45 ▼4.01
Dashboard /wp-admin2,214 ▲435.65 ▲0.1290.55 ▲2.3546.37 ▲3.51
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0135.47 ▼4.3732.07 ▼4.74
Add New Post /wp-admin/post-new.php1,541 ▲1323.04 ▼0.14668.98 ▲4.2352.97 ▼2.61
Media Library /wp-admin/upload.php1,410 ▲74.19 ▼0.0397.95 ▼7.2642.72 ▲0.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/lumturio-wp-monitor/lumturio.php:20

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: dashboard, management, security, admin, wordpress...

lumturio-wp-monitor/lumturio.php 92% from 13 tests

"Lumturio WP Monitor" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lumturio-wp-monitor.php" instead of "lumturio.php")

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14861182

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin