Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.30MB] [CPU: ▼268.11ms] Passed 4 tests
A check of server-side resources used by JS File Selector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 41.58 ▲24.06 |
Dashboard /wp-admin | 3.10 ▲0.05 | 42.22 ▲0.03 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 42.83 ▼0.50 |
Add New Post /wp-admin/post-new.php | 4.08 ▼1.34 | 47.91 ▼1,065.91 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 33.66 ▼6.05 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for JS File Selector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲48 | 16.07 ▲0.45 | 8.12 ▼1.25 | 53.24 ▲5.95 |
Dashboard /wp-admin | 2,938 ▲88 | 5.88 ▲0.04 | 138.74 ▲3.49 | 99.09 ▲0.01 |
Posts /wp-admin/edit.php | 2,711 ▲8 | 2.69 ▲0.00 | 63.98 ▼5.96 | 93.15 ▲0.31 |
Add New Post /wp-admin/post-new.php | 2,203 ▲722 | 22.96 ▲4.52 | 380.60 ▼12.29 | 119.44 ▲7.96 |
Media Library /wp-admin/upload.php | 1,780 ▲5 | 5.01 ▲0.01 | 143.01 ▼6.71 | 110.06 ▼13.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/js-file-selector/jsfileselector.php:246
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: javascript, js, page, post, file javascript
js-file-selector/jsfileselector.php 92% from 13 tests
Analyzing the main PHP file in "JS File Selector" version 1.0.3
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("js-file-selector.php" instead of "jsfileselector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin280 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 34 | 207 |
JavaScript | 1 | 8 | 1 | 54 |
CSS | 1 | 0 | 0 | 19 |
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.67 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin