89% network-admin-assistant

Code Review | Network Admin Assistant

WordPress plugin Network Admin Assistant scored89%from 54 tests.

About plugin

  • Plugin page: network-admin-ass...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 16, 2020
  • Latest release: Sep 1, 2023
  • Number of updates: 16
  • Update frequency: every 71.4 days
  • Top authors: roytanck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,322 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
Install script ran successfully

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

This is a short check of server-side resources used by Network Admin Assistant
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.35 ▲1.29
Dashboard /wp-admin3.32 ▼0.0346.03 ▼17.29
Posts /wp-admin/edit.php3.37 ▲0.0151.99 ▲7.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.55 ▲6.26
Media Library /wp-admin/upload.php3.24 ▲0.0135.67 ▲2.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Network Admin Assistant
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.791.95 ▼0.0444.87 ▼2.69
Dashboard /wp-admin2,209 ▲215.85 ▲0.95105.85 ▼6.9640.66 ▼6.35
Posts /wp-admin/edit.php2,092 ▲31.96 ▼0.0340.49 ▲1.7335.54 ▲0.11
Add New Post /wp-admin/post-new.php1,533 ▲1123.07 ▼0.15674.51 ▲12.8957.43 ▼0.55
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0598.35 ▼6.9445.34 ▲0.26

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

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

network-admin-assistant/network-admin-assistant.php 92% from 13 tests

The primary PHP file in "Network Admin Assistant" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin883 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6208273854
CSS14029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity16.00
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods2565.79%
▷ Protected methods00.00%
▷ Private methods1334.21%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin