Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.21ms] Passed 4 tests
This is a short check of server-side resources used by AJAX File Upload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.90 ▼2.40 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.75 ▼16.25 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.51 ▼3.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.63 ▼8.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.73 ▼4.15 |
AJAX file upload /wp-admin/options-general.php?page=ajax-file-upload | 3.22 | 30.61 |
/wp-admin/admin.php?page=afu-about | 3.27 | 34.66 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
afu_0.1_about_rdr |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for AJAX File Upload
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲137 | 13.42 ▼1.15 | 8.88 ▲6.94 | 43.78 ▲0.23 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.03 | 84.79 ▼18.95 | 39.26 ▼4.98 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.00 | 35.39 ▼3.94 | 33.18 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.09 ▲4.66 | 658.81 ▼5.72 | 56.59 ▼7.39 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.15 ▼0.06 | 112.66 ▲10.38 | 47.42 ▲2.61 |
AJAX file upload /wp-admin/options-general.php?page=ajax-file-upload | 974 | 2.00 | 22.30 | 31.09 |
/wp-admin/admin.php?page=afu-about | 1,331 | 2.04 | 24.12 | 99.29 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- afu_0.1_about_rdr
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ajax-file-upload/includes/afu-about.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AJAX_file_upload' not found in wp-content/plugins/ajax-file-upload/includes/admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ajax-file-upload/ajax-file-upload.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: There are too many tags (17 tag instead of maximum 10)
ajax-file-upload/ajax-file-upload.php Passed 13 tests
The main PHP file in "AJAX File Upload" ver. 0.1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
AJAX File Upload - fast and easy front-end WordPress file uploader with shortcodes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,403 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 283 | 42 | 660 |
HTML | 1 | 11 | 0 | 301 |
JavaScript | 1 | 60 | 23 | 212 |
CSS | 7 | 27 | 53 | 181 |
JSON | 1 | 0 | 0 | 34 |
SVG | 1 | 3 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 25 | |
▷ Static methods | 4 | 16.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin