90% asgaros-forum

Code Review | Asgaros Forum

WordPress plugin Asgaros Forum scored90%from 54 tests.

About plugin

  • Plugin page: asgaros-forum
  • Plugin version: 2.7.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Dec 29, 2015
  • Latest release: Oct 20, 2023
  • Number of updates: 188
  • Update frequency: every 15.2 days
  • Top authors: Asgaros (100%)

Code review

54 tests

User reviews

189 reviews

Install metrics

10,000+ active /788,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.53MB] [CPU: ▲8.72ms] Passed 4 tests

Server-side resources used by Asgaros Forum
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /6.03 ▲2.5661.30 ▲21.45
Dashboard /wp-admin5.88 ▲2.5363.91 ▲5.65
Posts /wp-admin/edit.php5.94 ▲2.5754.95 ▲5.09
Add New Post /wp-admin/post-new.php8.42 ▲2.53108.62 ▲10.90
Media Library /wp-admin/upload.php5.74 ▲2.5152.15 ▲13.22
Appearance /wp-admin/admin.php?page=asgarosforum-appearance5.7645.78
Settings /wp-admin/admin.php?page=asgarosforum-options6.1749.84
Usergroups /wp-admin/admin.php?page=asgarosforum-usergroups5.7447.19
Structure /wp-admin/admin.php?page=asgarosforum-structure5.7748.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 77 new files
Database: 8 new tables, 12 new options
New tables
wp_forum_topics
wp_forum_reports
wp_forum_polls_votes
wp_forum_polls
wp_forum_reactions
wp_forum_polls_options
wp_forum_posts
wp_forum_forums
New WordPress options
widget_asgarosforumsearch_widget
asgarosforum_options
asgarosforum_db_version
widget_recent-comments
asgarosforum-usergroup_children
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_asgarosforumrecentposts_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Asgaros Forum
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.35 ▲0.002.20 ▲0.5846.61 ▲7.31
Dashboard /wp-admin2,239 ▲625.62 ▲0.0894.96 ▲11.4244.72 ▲4.46
Posts /wp-admin/edit.php2,141 ▲411.99 ▼0.0137.13 ▲2.8635.87 ▼1.40
Add New Post /wp-admin/post-new.php6,276 ▲4,75020.91 ▼1.81870.74 ▲227.0382.34 ▲5.30
Media Library /wp-admin/upload.php1,444 ▲474.19 ▼0.0994.47 ▼12.8546.03 ▼0.84
Appearance /wp-admin/admin.php?page=asgarosforum-appearance2,2495.35149.9455.76
Settings /wp-admin/admin.php?page=asgarosforum-options2,9853.9675.4537.66
Usergroups /wp-admin/admin.php?page=asgarosforum-usergroups1,3054.3851.0654.57
Structure /wp-admin/admin.php?page=asgarosforum-structure1,3334.0338.9756.07

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
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_asgarosforumrecentposts_widget
    • widget_asgarosforumsearch_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • asgarosforum-usergroup_children
    • widget_recent-comments
    • widget_asgarosforumrecenttopics_widget
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: forum, forums, asgaros, community, discussion...

asgaros-forum/asgaros-forum.php 92% from 13 tests

The entry point to "Asgaros Forum" version 2.7.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,392 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP472,8641,40612,040
CSS844612,547
JavaScript6280992,071
Markdown23110732
YAML1112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity50.87
▷ Minimum class complexity5.00
▷ Maximum class complexity420.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods552
▷ Static methods498.88%
▷ Public methods54198.01%
▷ Protected methods00.00%
▷ Private methods111.99%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png7.23KB3.31KB▼ 54.23%