Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲6.09MB] [CPU: ▲27.71ms] 75% from 4 tests
Analyzing server-side resources used by Filr - Secure document library
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 6.09MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.93 ▲6.46 | 63.42 ▲22.85 |
Dashboard /wp-admin | 9.95 ▲6.64 | 80.83 ▲31.83 |
Posts /wp-admin/edit.php | 9.95 ▲6.59 | 87.59 ▲39.97 |
Add New Post /wp-admin/post-new.php | 10.56 ▲4.66 | 110.88 ▲19.68 |
Media Library /wp-admin/upload.php | 9.95 ▲6.72 | 68.10 ▲36.49 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.95 | 64.44 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 233 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_theysaidso_widget |
filr_frontend_uploader |
theysaidso_admin_options |
fs_accounts |
widget_recent-comments |
filr_status |
db_upgraded |
can_compress_scripts |
fs_active_plugins |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
Filr - Secure document library: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,149 ▲387 | 15.79 ▲1.63 | 19.36 ▲17.62 | 32.53 ▼10.64 |
Dashboard /wp-admin | 2,407 ▲240 | 6.50 ▲0.97 | 126.58 ▲8.32 | 45.61 ▼1.83 |
Posts /wp-admin/edit.php | 2,339 ▲239 | 3.67 ▲1.66 | 57.87 ▲19.70 | 38.68 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 22.27 ▼0.84 | 581.60 ▼76.89 | 27.18 ▼22.99 |
Media Library /wp-admin/upload.php | 1,475 ▲75 | 4.40 ▲0.18 | 84.17 ▼11.76 | 43.64 ▲3.02 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,294 | 3.29 | 48.91 | 32.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/filr-protection/inc/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 12 options in the database
- filr_frontend_uploader
- fs_active_plugins
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- fs_accounts
- filr_shortcode
- fs_debug_mode
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/filr-protection/filr-protection.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
7 plugin tags: protect uploads, document library, prevent direct access, upload protection, file library...
filr-protection/filr-protection.php 92% from 13 tests
The entry point to "Filr - Secure document library" version 1.2.3.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected41,735 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 8,602 | 18,288 | 36,849 |
PO File | 7 | 1,503 | 1,580 | 4,028 |
JavaScript | 12 | 91 | 148 | 487 |
CSS | 18 | 43 | 23 | 256 |
SVG | 4 | 0 | 1 | 107 |
JSON | 1 | 0 | 0 | 5 |
Markdown | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 79.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,403 | |
▷ Static methods | 232 | 16.54% |
▷ Public methods | 991 | 70.63% |
▷ Protected methods | 17 | 1.21% |
▷ Private methods | 395 | 28.15% |
Functions | 113 | |
▷ Named functions | 108 | 95.58% |
▷ Anonymous functions | 5 | 4.42% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
inc/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |