89% change-user-group-asgaros-forum

Code Review | Сhange user group Asgaros forum

WordPress plugin Сhange user group Asgaros forum scored 89% from 54 tests.

About plugin

  • Plugin page: change-user-group...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Jul 21, 2020
  • Number of updates: 6
  • Update frequency: every 63.7 days
  • Top authors: northmule (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.83ms] Passed 4 tests

Analyzing server-side resources used by Сhange user group Asgaros forum
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.12 ▼12.80
Dashboard /wp-admin3.35 ▲0.0448.70 ▼0.40
Posts /wp-admin/edit.php3.46 ▲0.1049.55 ▲0.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.02 ▲7.48
Media Library /wp-admin/upload.php3.27 ▲0.0437.73 ▲1.12

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Сhange user group Asgaros forum
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.48 ▲0.191.68 ▼0.3440.27 ▼4.03
Dashboard /wp-admin2,231 ▲404.86 ▼0.99108.46 ▼6.3444.31 ▲1.65
Posts /wp-admin/edit.php2,114 ▲252.11 ▲0.1041.70 ▲2.1837.39 ▼0.07
Add New Post /wp-admin/post-new.php1,550 ▲3623.55 ▲6.05582.47 ▼91.9256.01 ▲2.67
Media Library /wp-admin/upload.php1,407 ▲194.21 ▼0.07101.57 ▲3.4842.31 ▼2.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #2 (Order form.), #3 (Settings add-on.), #4 (Orders.)
Please take inspiration from this readme.txt

change-user-group-asgaros-forum/change-asgaros-forum.php 85% from 13 tests

The main PHP script in "Сhange user group Asgaros forum" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("change-user-group-asgaros-forum.php" instead of "change-asgaros-forum.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
Everything looks great! No dangerous files found in this plugin387 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP612098356
CSS231229
JavaScript1202

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.67
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2686.67%
▷ Protected methods413.33%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin