100% add-role-site-manager

Code Review | Add Role Site Manager

WordPress plugin Add Role Site Manager scored 100% from 54 tests.

About plugin

  • Plugin page: add-role-site-man...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.2
  • WordPress version: 5.9.2
  • First release: Jan 22, 2020
  • Latest release: Jan 22, 2020
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: wpgetty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 539 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Add Role Site Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0356.00 ▲3.43
Dashboard /wp-admin3.43 ▲0.0234.39 ▲1.30
Posts /wp-admin/edit.php3.66 ▲0.0240.51 ▲3.38
Add New Post /wp-admin/post-new.php6.90 ▼0.0791.21 ▼1,174.37
Media Library /wp-admin/upload.php3.31 ▲0.0225.79 ▲3.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add Role Site Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲4515.93 ▼0.045.83 ▼0.712.47 ▼0.09
Dashboard /wp-admin2,895 ▲346.12 ▼0.04118.80 ▼15.96158.97 ▼5.14
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0164.06 ▲1.07142.03 ▲2.14
Add New Post /wp-admin/post-new.php1,752 ▲9121.60 ▲5.50475.00 ▲43.72158.76 ▲5.77
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.01139.39 ▼4.47186.32 ▼8.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: editor, manager, client, administrator, shop_manager...

add-role-site-manager/add-role-site-manager.php 92% from 13 tests

The main file in "Add Role Site Manager" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 318 characters long)

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
There were no executable files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2295259

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin