Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.68MB] [CPU: ▲22.43ms] 75% from 4 tests
An overview of server-side resources used by Netforum Member Directory
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,526.36ms on /wp-admin/tools.php?page=fs_netforum_plugin_import)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.55 ▲5.09 | 66.00 ▲21.38 |
Dashboard /wp-admin | 8.57 ▲5.26 | 80.93 ▲30.78 |
Posts /wp-admin/edit.php | 8.57 ▲5.21 | 65.60 ▲20.94 |
Add New Post /wp-admin/post-new.php | 9.03 ▲3.14 | 106.32 ▲16.62 |
Media Library /wp-admin/upload.php | 8.57 ▲5.34 | 66.41 ▲33.92 |
Netforum Directory /wp-admin/tools.php?page=fs_netforum_plugin_import | 8.57 | 1,526.36 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.57 | 53.15 |
Server storage [IO: ▲4.48MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 194 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_fsnet_user_master |
New WordPress options |
---|
fs_accounts |
widget_recent-posts |
fs_gdpr |
widget_theysaidso_widget |
widget_recent-comments |
fs_active_plugins |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
fsnet_db_version_sync |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Netforum Member Directory
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.20 ▼1.18 | 1.88 ▼0.06 | 32.07 ▼18.20 |
Dashboard /wp-admin | 2,231 ▲43 | 5.80 ▲0.96 | 112.26 ▼3.50 | 46.39 ▼0.17 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.02 ▲0.02 | 34.37 ▼2.77 | 34.84 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 18.11 ▼5.08 | 622.64 ▼30.06 | 58.37 ▲9.85 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.22 ▲0.06 | 102.06 ▲5.75 | 46.15 ▲1.67 |
Netforum Directory /wp-admin/tools.php?page=fs_netforum_plugin_import | 1,310 | 2.06 | 30.92 | 51.31 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,060 | 1.71 | 26.91 | 28.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/netforum-directory-with-importer/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 1 table
- wp_fsnet_user_master
- The uninstall procedure has failed, leaving 11 options in the database
- db_upgraded
- fs_gdpr
- fs_active_plugins
- fs_accounts
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- fs_debug_mode
- fsnet_db_version_sync
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: avectra, netforum, member directory
netforum-directory-with-importer/plugin.php 92% from 13 tests
The main PHP file in "Netforum Member Directory" ver. 1.11 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("netforum-directory-with-importer.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin52,529 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 7,267 | 16,066 | 30,616 |
PO File | 12 | 6,951 | 8,444 | 15,222 |
JavaScript | 5 | 1,990 | 7,021 | 6,388 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 13 | 9 | 0 | 61 |
JSON | 1 | 0 | 0 | 27 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 89.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,144 | |
▷ Static methods | 173 | 15.12% |
▷ Public methods | 801 | 70.02% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 328 | 28.67% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/forward_disabled.png | 1.33KB | 0.58KB | ▼ 56.42% |
images/sort_both.png | 1.11KB | 0.29KB | ▼ 74.12% |
images/forward_enabled_hover.png | 1.35KB | 0.58KB | ▼ 56.93% |
images/sort_asc_disabled.png | 2.85KB | 0.25KB | ▼ 91.36% |
images/sort_desc.png | 1.10KB | 0.25KB | ▼ 77.73% |