84% lw-mwp-tools

Code Review | LW MWP Tools

WordPress plugin LW MWP Tools scored84%from 54 tests.

About plugin

  • Plugin page: lw-mwp-tools
  • Plugin version: 0.3.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9.6
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: May 18, 2018
  • Number of updates: 30
  • Update frequency: every 3.4 days
  • Top authors: fs1995 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,172 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.01ms] Passed 4 tests

An overview of server-side resources used by LW MWP Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.37 ▼1.07
Dashboard /wp-admin3.31 ▲0.0049.71 ▲0.86
Posts /wp-admin/edit.php3.36 ▲0.0045.21 ▼3.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.00 ▼3.92
Media Library /wp-admin/upload.php3.23 ▲0.0036.92 ▲0.82

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

LW MWP Tools: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼0.791.73 ▲0.1239.48 ▼1.33
Dashboard /wp-admin2,206 ▲214.82 ▼1.0998.79 ▼0.8139.64 ▼6.06
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0439.22 ▲0.7233.77 ▼0.60
Add New Post /wp-admin/post-new.php1,535 ▼023.49 ▲0.21646.69 ▼44.7053.08 ▼2.21
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0596.89 ▼6.4243.90 ▲0.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lw-mwp-tools/lw-mwp-tools.php
    • > /wp-content/plugins/lw-mwp-tools/api.php
    • > /wp-content/plugins/lw-mwp-tools/monitor.php
    • > /wp-content/plugins/lw-mwp-tools/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: server info, liquid web, liquidweb, debug, monitor

lw-mwp-tools/lw-mwp-tools.php Passed 13 tests

"LW MWP Tools" version 0.3.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Easy access to system logs and resource usage on the Liquid Web Managed WordPress Hosting Platform.

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 plugin322 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP43920253
JavaScript3171760
CSS2019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions12
▷ Named functions12100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pixel.png0.09KB0.09KB0.00%
images/pct.png0.37KB0.38KB0.00%
images/sec.png0.53KB0.55KB0.00%