Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.85ms] Passed 4 tests
A check of server-side resources used by Library Viewer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.68 ▼10.63 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.10 ▼2.20 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.95 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 95.34 ▼7.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.17 ▲3.30 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Library Viewer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.45 ▼0.04 | 1.72 ▼0.12 | 42.03 ▼0.86 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▲0.97 | 99.45 ▼22.92 | 39.26 ▼8.11 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.04 | 40.25 ▲0.92 | 34.35 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.32 ▲0.09 | 650.01 ▲29.92 | 66.08 ▲8.96 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.02 | 98.32 ▼8.78 | 41.28 ▼5.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Library_Viewer_File_Alias' not found in wp-content/plugins/library-viewer/frontend/class-library-viewer-file.php:12
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: file manager, file list, download manager, ftp
library-viewer/library-viewer.php 92% from 13 tests
The primary PHP file in "Library Viewer" version 2.0.6.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,248 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 375 | 1,760 | 1,182 |
CSS | 4 | 1 | 0 | 46 |
JavaScript | 2 | 4 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 25.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 28.41% |
▷ Protected methods | 63 | 71.59% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/folder-icon.png | 0.81KB | 1.09KB | 0.00% |