84% network-only-plugins-tab

Code Review | Network Only Plugins Tab

WordPress plugin Network Only Plugins Tab scored84%from 54 tests.

About plugin

  • Plugin page: network-only-plug...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Oct 23, 2013
  • Number of updates: 10
  • Update frequency: every 0.8 days
  • Top authors: brasofilo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,032 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.36ms] Passed 4 tests

This is a short check of server-side resources used by Network Only Plugins Tab
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.31 ▲4.18
Dashboard /wp-admin3.33 ▲0.0347.02 ▲3.82
Posts /wp-admin/edit.php3.38 ▲0.0344.61 ▼3.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.47 ▼10.78
Media Library /wp-admin/upload.php3.26 ▲0.0234.44 ▼3.43

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Network Only Plugins Tab
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.111.84 ▲0.1343.60 ▲2.86
Dashboard /wp-admin2,206 ▲314.90 ▼1.01108.75 ▲1.9538.61 ▼6.60
Posts /wp-admin/edit.php2,089 ▲102.06 ▲0.0437.19 ▼7.9033.78 ▼5.27
Add New Post /wp-admin/post-new.php1,533 ▼1023.14 ▲4.87586.56 ▼34.6654.16 ▲1.32
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.0999.11 ▲4.3643.33 ▼0.95

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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 everything seems fine, this is not 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
Please take a closer look at the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/network-only-plugins-tab/inc/html-settings.php
    • > /wp-content/plugins/network-only-plugins-tab/inc/class-nopt-core.php
    • > /wp-content/plugins/network-only-plugins-tab/network-only-plugins-tab.php
    • > /wp-content/plugins/network-only-plugins-tab/inc/class-nopt-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: plugins, network, admin, tuning, admin interface...

network-only-plugins-tab/network-only-plugins-tab.php 92% from 13 tests

Analyzing the main PHP file in "Network Only Plugins Tab" version 1.2
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
No dangerous file extensions were detected1,164 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2125464
SVG100399
PHP595214284
JavaScript12717

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.28
Average class complexity10.50
▷ Minimum class complexity5.00
▷ Maximum class complexity16.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin