Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.54ms] Passed 4 tests
This is a short check of server-side resources used by Simple Downloads List
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.91 ▼3.83 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.76 ▼16.16 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.64 ▲1.26 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.23 ▼15.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.94 ▲1.56 |
Server storage [IO: ▲4.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 41 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_neofix_sdl |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Downloads List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.34 ▼1.02 | 4.32 ▲2.54 | 44.07 ▲3.99 |
Dashboard /wp-admin | 2,237 ▲34 | 5.86 ▼0.01 | 98.72 ▼2.53 | 37.50 ▼8.26 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.01 | 33.25 ▼3.85 | 35.35 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,565 ▲20 | 23.46 ▲0.30 | 652.96 ▼18.04 | 61.77 ▲2.07 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.26 ▼0.02 | 96.07 ▼19.41 | 42.59 ▼2.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-downloads-list/admin/adminpanel_v2.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-downloads-list/neofix_sdl.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-downloads-list/setup/setup.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/simple-downloads-list/admin/render_adminpanel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-downloads-list/lists/list_1/download_list_1.php:2
- > PHP Warning
Use of undefined constant NEOFIX_SDL_PATH_LOCAL - assumed 'NEOFIX_SDL_PATH_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-downloads-list/setup/setup.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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: table, attachments, downloads, list, files...
simple-downloads-list/neofix_sdl.php 92% from 13 tests
The entry point to "Simple Downloads List" version 1.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-downloads-list.php" instead of "neofix_sdl.php")
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
Success! There were no dangerous files found in this plugin21,300 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,488 | 50 | 13,124 |
JavaScript | 7 | 2,071 | 1,562 | 7,884 |
PHP | 5 | 51 | 25 | 292 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected