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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.03 ▲2.56 | 61.30 ▲21.45 |
Dashboard /wp-admin | 5.88 ▲2.53 | 63.91 ▲5.65 |
Posts /wp-admin/edit.php | 5.94 ▲2.57 | 54.95 ▲5.09 |
Add New Post /wp-admin/post-new.php | 8.42 ▲2.53 | 108.62 ▲10.90 |
Media Library /wp-admin/upload.php | 5.74 ▲2.51 | 52.15 ▲13.22 |
Appearance /wp-admin/admin.php?page=asgarosforum-appearance | 5.76 | 45.78 |
Settings /wp-admin/admin.php?page=asgarosforum-options | 6.17 | 49.84 |
Usergroups /wp-admin/admin.php?page=asgarosforum-usergroups | 5.74 | 47.19 |
Structure /wp-admin/admin.php?page=asgarosforum-structure | 5.77 | 48.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.35 ▲0.00 | 2.20 ▲0.58 | 46.61 ▲7.31 |
Dashboard /wp-admin | 2,239 ▲62 | 5.62 ▲0.08 | 94.96 ▲11.42 | 44.72 ▲4.46 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 1.99 ▼0.01 | 37.13 ▲2.86 | 35.87 ▼1.40 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,750 | 20.91 ▼1.81 | 870.74 ▲227.03 | 82.34 ▲5.30 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.19 ▼0.09 | 94.47 ▼12.85 | 46.03 ▼0.84 |
Appearance /wp-admin/admin.php?page=asgarosforum-appearance | 2,249 | 5.35 | 149.94 | 55.76 |
Settings /wp-admin/admin.php?page=asgarosforum-options | 2,985 | 3.96 | 75.45 | 37.66 |
Usergroups /wp-admin/admin.php?page=asgarosforum-usergroups | 1,305 | 4.38 | 51.06 | 54.57 |
Structure /wp-admin/admin.php?page=asgarosforum-structure | 1,333 | 4.03 | 38.97 | 56.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 2,864 | 1,406 | 12,040 |
CSS | 8 | 44 | 61 | 2,547 |
JavaScript | 6 | 280 | 99 | 2,071 |
Markdown | 2 | 311 | 0 | 732 |
YAML | 1 | 1 | 1 | 2 |
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 code | 0.36 |
Average class complexity | 50.87 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 420.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 552 | |
▷ Static methods | 49 | 8.88% |
▷ Public methods | 541 | 98.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 1.99% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 7.23KB | 3.31KB | ▼ 54.23% |