Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▲21.81ms] Passed 4 tests
Analyzing server-side resources used by VA Fast Image Upload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 74.12 ▲32.76 |
Dashboard /wp-admin | 3.33 ▲0.03 | 85.96 ▲37.58 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 79.44 ▲34.69 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 74.07 ▼17.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 74.31 ▲43.75 |
Server storage [IO: ▲14.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_vafastimageupload_settings |
wp_vafastimageupload |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
VA Fast Image Upload: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.28 ▼1.36 | 1.66 ▼0.71 | 40.53 ▼2.23 |
Dashboard /wp-admin | 2,215 ▲27 | 5.83 ▲0.97 | 107.91 ▲1.48 | 71.44 ▲30.21 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.00 ▼0.05 | 34.89 ▼0.98 | 32.18 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,695 ▲162 | 23.53 ▲0.43 | 673.54 ▲31.54 | 52.80 ▼0.96 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.20 ▲0.02 | 99.13 ▲2.75 | 70.47 ▲26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_vafastimageupload_settings
- wp_vafastimageupload
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/va-fast-image-upload/class/uploadlist.class.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function fetchPost() on null in wp-content/plugins/va-fast-image-upload/lang.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/va-fast-image-upload/index.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/va-fast-image-upload/class/uploadlist.class.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/va-fast-image-upload/list.php:7
- > PHP Notice
Undefined variable: formvalues in wp-content/plugins/va-fast-image-upload/pluginsettingsform.php on line 22
- > PHP Fatal error
Uncaught Error: Call to a member function fetchPost() on null in wp-content/plugins/va-fast-image-upload/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/va-fast-image-upload/shortcode.php:57
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/va-fast-image-upload/class/uploadlist.class.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/va-fast-image-upload/pluginsettingsform.php:88
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please a description for screenshot #1 in va-fast-image-upload/assets to your readme.txt
va-fast-image-upload/index.php 92% from 13 tests
This is the main PHP file of "VA Fast Image Upload" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("va-fast-image-upload.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin770 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 89 | 226 | 747 |
Markdown | 1 | 4 | 0 | 13 |
JavaScript | 1 | 0 | 61 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 27.78% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 2.94KB | 0.38KB | ▼ 87.26% |