84% network-plugin-overview

Code Review | Network Overview

WordPress plugin Network Overview scored84%from 54 tests.

About plugin

  • Plugin page: network-plugin-ov...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Nov 28, 2012
  • Latest release: Jul 7, 2017
  • Number of updates: 12
  • Update frequency: every 140.3 days
  • Top authors: davidsword (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,087 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.09ms] Passed 4 tests

This is a short check of server-side resources used by Network Overview
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.68 ▲0.77
Dashboard /wp-admin3.32 ▼0.0244.74 ▼11.41
Posts /wp-admin/edit.php3.37 ▲0.0245.64 ▼3.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.06 ▼29.90
Media Library /wp-admin/upload.php3.25 ▲0.0232.08 ▲0.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Network Overview
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▲0.061.71 ▼0.0538.55 ▼2.16
Dashboard /wp-admin2,198 ▲215.61 ▼0.0987.01 ▼12.7240.76 ▼0.45
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0341.19 ▲1.8134.52 ▼3.05
Add New Post /wp-admin/post-new.php1,526 ▼023.44 ▼0.06596.84 ▼106.0246.09 ▼8.01
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0296.14 ▼0.2141.36 ▼4.22

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/network-plugin-overview/network-overview-sites.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/network-plugin-overview/network-overview.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/network-plugin-overview/network-overview-themes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/network-plugin-overview/network-overview-plugins.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: active plugins, find unused plugins, read-only, network summary, overview...

network-plugin-overview/network-overview.php 85% from 13 tests

The main PHP file in "Network Overview" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("network-plugin-overview.php" instead of "network-overview.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin286 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53563210
CSS14976

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin