Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.52ms] Passed 4 tests
Server-side resources used by FileBird Document Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 38.79 ▲35.28 | 7,283,998.83 ▲7,283,958.54 |
Dashboard /wp-admin | 3.36 ▼0.03 | 51.77 ▼17.83 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 51.34 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 88.04 ▼14.28 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 43.48 ▲5.87 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for FileBird Document Library
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲28 | 14.35 ▼0.00 | 1.83 ▼0.29 | 40.29 ▼2.40 |
Dashboard /wp-admin | 2,202 ▲25 | 5.53 ▼0.12 | 81.59 ▼7.90 | 41.70 ▲0.93 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.15 ▲0.18 | 36.53 ▲0.76 | 38.30 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.17 ▼0.19 | 685.26 ▼0.15 | 52.62 ▼7.75 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.10 ▼0.12 | 111.50 ▲6.93 | 48.75 ▲0.15 |
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 does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: document library, document gallery, wordpress pdf download plugin, wordpress document library, wordpress ebook plugin...
filebird-document-library/filebird-document-library.php 92% from 13 tests
The main PHP file in "FileBird Document Library" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected3,399 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 20 | 0 | 0 | 1,938 |
PO File | 7 | 336 | 454 | 848 |
PHP | 4 | 69 | 16 | 373 |
SVG | 10 | 0 | 8 | 235 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 3 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin