Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.12MB] [CPU: ▲2.83ms] 75% from 4 tests
Analyzing server-side resources used by Document Library Lite
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 668.44ms on /wp-admin/admin.php?page=document_library)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 43.11 ▼5.20 |
Dashboard /wp-admin | 4.58 ▲1.23 | 54.75 ▼5.55 |
Posts /wp-admin/edit.php | 4.63 ▲1.28 | 59.56 ▲15.90 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 95.09 ▲9.30 |
Media Library /wp-admin/upload.php | 4.51 ▲1.28 | 48.35 ▲12.76 |
Categories /wp-admin/edit-tags.php?taxonomy=doc_categories&post_type=dlp_document | 4.50 | 43.68 |
Settings /wp-admin/admin.php?page=document_library | 4.53 | 668.44 |
Add New /wp-admin/post-new.php?post_type=dlp_document | 4.66 | 63.41 |
All Documents /wp-admin/edit.php?post_type=dlp_document | 4.55 | 46.30 |
Import /wp-admin/admin.php?page=dlp_import | 4.47 | 39.38 |
Server storage [IO: ▲2.54MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
dlp_should_flush_rewrite_rules |
theysaidso_admin_options |
dlp_document_page |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Document Library Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲89 | 14.06 ▲0.15 | 1.68 ▼0.49 | 40.36 ▼6.40 |
Dashboard /wp-admin | 2,241 ▲61 | 5.60 ▼0.14 | 89.56 ▲0.26 | 39.97 ▼3.55 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.02 ▼0.01 | 44.15 ▲10.73 | 36.70 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.34 ▲0.19 | 600.99 ▼91.52 | 54.20 ▼1.65 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.21 ▼0.01 | 98.98 ▼0.81 | 41.50 ▼5.50 |
Categories /wp-admin/edit-tags.php?taxonomy=doc_categories&post_type=dlp_document | 1,320 | 2.12 | 27.25 | 31.00 |
Settings /wp-admin/admin.php?page=document_library | 1,772 | 2.14 | 24.68 | 47.54 |
Add New /wp-admin/post-new.php?post_type=dlp_document | 2,433 | 7.88 | 165.54 | 64.10 |
All Documents /wp-admin/edit.php?post_type=dlp_document | 1,123 | 1.91 | 33.15 | 29.54 |
Import /wp-admin/admin.php?page=dlp_import | 831 | 1.99 | 21.71 | 24.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- dlp_document_page
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- dlp_should_flush_rewrite_rules
- theysaidso_admin_options
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Document_Library\\Dependencies\\Lib\\Plugin\\Simple_Plugin' not found in wp-content/plugins/document-library-lite/src/Plugin.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Document_Library\\Dependencies\\Lib\\Plugin\\Plugin' not found in wp-content/plugins/document-library-lite/dependencies/barn2/barn2-lib/src/Plugin/Simple_Plugin.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Document_Library\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/document-library-lite/dependencies/barn2/barn2-lib/src/WooCommerce/Admin/Custom_Settings_Fields.php:18
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Document_Library\\Dependencies\\Setup_Wizard\\Step' not found in wp-content/plugins/document-library-lite/dependencies/barn2/setup-wizard/src/Steps/Ready.php:15
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Document_Library\\Dependencies\\Setup_Wizard\\Steps\\Ready' not found in wp-content/plugins/document-library-lite/src/Admin/Wizard/Steps/Completed.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Document_Library\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/document-library-lite/dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Key_Setting.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Document_Library\\Dependencies\\Lib\\Plugin\\License\\License_Summary' not found in wp-content/plugins/document-library-lite/dependencies/barn2/barn2-lib/src/Plugin/License/License.php:14
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Document_Library\\Dependencies\\Setup_Wizard\\Step' not found in wp-content/plugins/document-library-lite/src/Admin/Wizard/Steps/Layout.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Document_Library\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/document-library-lite/dependencies/barn2/barn2-lib/src/Rest/Base_Server.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Document_Library\\Dependencies\\Setup_Wizard\\Interfaces\\Pluggable' not found in wp-content/plugins/document-library-lite/dependencies/barn2/setup-wizard/src/Step.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: file manager, download manager, wordpress, document management, documents...
document-library-lite/document-library-lite.php Passed 13 tests
The primary PHP file in "Document Library Lite" version 1.0.6 is used by WordPress to initiate all plugin functionality
64 characters long description:
Add documents and display them in a searchable document library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin19,652 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 3,259 | 7,785 | 11,294 |
PHP | 108 | 871 | 4,252 | 7,813 |
CSS | 11 | 24 | 24 | 411 |
Sass | 4 | 2 | 0 | 123 |
JSON | 2 | 0 | 0 | 6 |
Markdown | 1 | 3 | 0 | 4 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 20 | |
Traits | 2 | |
Classes | 74 | |
▷ Abstract classes | 5 | 6.76% |
▷ Concrete classes | 69 | 93.24% |
▷ Final classes | 2 | 2.90% |
Methods | 671 | |
▷ Static methods | 119 | 17.73% |
▷ Public methods | 575 | 85.69% |
▷ Protected methods | 9 | 1.34% |
▷ Private methods | 87 | 12.97% |
Functions | 12 | |
▷ Named functions | 4 | 33.33% |
▷ Anonymous functions | 8 | 66.67% |
Constants | 50 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 50 | 100.00% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/promo-grid.png | 153.90KB | 164.40KB | 0.00% |
assets/js/datatables/DataTables-1.11.3/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/js/photoswipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |
assets/js/datatables/DataTables-1.11.3/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/promo-import.png | 73.13KB | 76.10KB | 0.00% |