Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼141.50ms] Passed 4 tests
A check of server-side resources used by WP Editor Imgur Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 37.91 ▲14.58 |
Dashboard /wp-admin | 3.09 ▲0.04 | 45.48 ▲2.80 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 42.27 ▼6.29 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.45 ▼560.44 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.18 ▼2.05 |
Imgur Uploader Settings /wp-admin/options-general.php?page=imgur-uploader | 3.00 | 31.09 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Editor Imgur Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲238 | 16.29 ▲0.65 | 12.80 ▲2.84 | 47.30 ▲1.75 |
Dashboard /wp-admin | 2,987 ▲56 | 6.19 ▲0.15 | 142.27 ▼6.75 | 113.32 ▲4.85 |
Posts /wp-admin/edit.php | 2,753 ▲14 | 2.72 ▲0.01 | 72.38 ▲1.69 | 86.93 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,510 ▼2,216 | 18.60 ▲3.37 | 373.30 ▼98.77 | 105.22 ▲1.77 |
Media Library /wp-admin/upload.php | 1,821 ▲17 | 5.29 ▲0.29 | 174.30 ▲20.89 | 116.16 ▲4.35 |
Imgur Uploader Settings /wp-admin/options-general.php?page=imgur-uploader | 1,182 | 2.34 | 52.77 | 61.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× 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/wp-editor-imgur-button/option-file.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-editor-imgur-button/option-file.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=imgur-uploader
- > Javascript (severe) in unknown
/wp-content/plugins/wp-editor-imgur-button/js/ajax-action.js?ver=5.8.1 0:20 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: imgur plugin, imgur, front end upload, imgur comment, imgur uploader...
wp-editor-imgur-button/imgur-upload.php 92% from 13 tests
Analyzing the main PHP file in "WP Editor Imgur Button" version 1.1
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-editor-imgur-button.php" instead of "imgur-upload.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin214 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 12 | 152 |
JavaScript | 2 | 1 | 0 | 40 |
CSS | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin