Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.40ms] Passed 4 tests
This is a short check of server-side resources used by File Provider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.04 ▲2.85 |
Dashboard /wp-admin | 3.44 ▲0.14 | 50.64 ▼4.66 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 53.58 ▲3.14 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 96.84 ▼3.45 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 38.80 ▼0.34 |
File Provider Options /wp-admin/options-general.php?page=file-provider-options | 3.33 | 35.99 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_dfp_files |
wp_dfp_group |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by File Provider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.12 | 1.86 ▲0.09 | 44.79 ▼2.40 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.04 | 89.03 ▼10.17 | 40.36 ▼4.71 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 38.69 ▲3.15 | 37.15 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.06 ▲4.74 | 649.52 ▲6.23 | 52.27 ▼18.42 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.28 ▲0.06 | 103.24 ▲3.14 | 41.15 ▼0.50 |
File Provider Options /wp-admin/options-general.php?page=file-provider-options | 910 | 2.03 | 22.24 | 28.61 |
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
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_dfp_group
- wp_dfp_files
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: file page, share, file provider, file, file manager...
file-provider/file-provider.php 92% from 13 tests
The main PHP script in "File Provider" version 1.2.3 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 212 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected972 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 108 | 9 | 866 |
CSS | 1 | 13 | 0 | 94 |
JavaScript | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 1 | 1.72% |
▷ Public methods | 29 | 50.00% |
▷ Protected methods | 18 | 31.03% |
▷ Private methods | 11 | 18.97% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/txt.png | 3.42KB | 2.11KB | ▼ 38.26% |
images/wav.png | 4.38KB | 2.27KB | ▼ 48.20% |
images/png.png | 4.19KB | 2.11KB | ▼ 49.62% |
images/xls.png | 4.08KB | 2.22KB | ▼ 45.72% |
images/doc.png | 4.26KB | 2.38KB | ▼ 44.13% |