Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.48ms] Passed 4 tests
An overview of server-side resources used by s2member Secure File Browser
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.87 ▲1.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.23 ▼0.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.95 ▼6.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.44 ▼7.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.83 ▲3.80 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for s2member Secure File Browser
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.75 ▼0.53 | 1.95 ▲0.23 | 45.31 ▲5.03 |
Dashboard /wp-admin | 2,209 ▲18 | 5.92 ▲0.95 | 98.56 ▼7.32 | 40.74 ▼3.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 36.47 ▼0.38 | 31.45 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.66 ▼4.36 | 652.28 ▲16.96 | 69.91 ▲17.23 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.00 | 96.87 ▼1.80 | 42.87 ▼4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/s2member-secure-file-browser/class/psk_s2msfb.class.php+160
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/s2member-secure-file-browser/uninstall.php:8
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/s2member-secure-file-browser/inc/define.php on line 54
- > PHP Warning
Use of undefined constant PSK_S2MSFB_PLUGIN_FILE - assumed 'PSK_S2MSFB_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/s2member-secure-file-browser/inc/define.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/s2member-secure-file-browser/inc/tools.class.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/s2member-secure-file-browser/inc/define.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/s2member-secure-file-browser/s2member-secure-file-browser.php:33
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: file, s2member, upload, files, manager...
s2member-secure-file-browser/s2member-secure-file-browser.php Passed 13 tests
The primary PHP file in "s2member Secure File Browser" version 0.4.19 is used by WordPress to initiate all plugin functionality
103 characters long description:
A plugin for browsing files from the secure-files location of the s2member WordPress Membership plugin.
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
No dangerous file extensions were detected24,130 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 2,013 | 50 | 10,242 |
JavaScript | 17 | 819 | 576 | 6,293 |
PHP | 12 | 864 | 1,064 | 4,673 |
PO File | 3 | 1,168 | 1,594 | 2,918 |
Markdown | 1 | 3 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 73.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 7.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 99 | 90.00% |
▷ Public methods | 97 | 88.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 11.82% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 75 | |
▷ Global constants | 75 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
62 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prettyPhoto/facebook/contentPatternBottom.png | 0.12KB | 0.11KB | ▼ 10.40% |
img/prettyPhoto/facebook/contentPatternTop.png | 0.12KB | 0.11KB | ▼ 10.40% |
img/xls.png | 0.65KB | 0.63KB | ▼ 2.41% |
img/directory.png | 0.52KB | 0.68KB | 0.00% |
img/code.png | 0.59KB | 0.59KB | 0.50% |