90% wp-netmonstatus

Code Review | WP Netmon Status

WordPress plugin WP Netmon Status scored90%from 54 tests.

About plugin

  • Plugin page: wp-netmonstatus
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2014
  • Latest release: Nov 22, 2014
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: TinoD (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.13MB] [CPU: ▼13.97ms] Passed 4 tests

A check of server-side resources used by WP Netmon Status
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0339.61 ▼2.40
Dashboard /wp-admin3.32 ▼0.0343.53 ▼28.25
Posts /wp-admin/edit.php3.37 ▼0.4845.71 ▼10.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.18 ▼14.37
Media Library /wp-admin/upload.php3.24 ▲0.0134.72 ▲0.97

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Netmon Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.231.68 ▼0.6639.66 ▼10.40
Dashboard /wp-admin2,206 ▲205.91 ▼0.14105.67 ▼3.0237.62 ▼0.33
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0138.73 ▲0.8035.41 ▲3.64
Add New Post /wp-admin/post-new.php1,540 ▲923.36 ▲0.49609.09 ▲29.3363.02 ▲11.93
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0094.47 ▼10.0142.23 ▼3.50

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_netmon_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: widget, netmon, freifunk

wp-netmonstatus/wp-netmon-widget.php 92% from 13 tests

Analyzing the main PHP file in "WP Netmon Status" version 1.0.2
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-netmonstatus.php" instead of "wp-netmon-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12435142
Markdown1305

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/status_up_big.png3.25KB2.13KB▼ 34.54%
img/status_down_big.png2.88KB2.08KB▼ 27.57%
img/status_pending_big.png2.93KB1.94KB▼ 33.72%
img/client-logo.png2.09KB1.56KB▼ 25.42%