Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.18ms] Passed 4 tests
A check of server-side resources used by Images to Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.47 ▼5.62 |
Dashboard /wp-admin | 3.37 ▲0.06 | 43.85 ▼8.61 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.95 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.87 ▼14.99 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.89 ▲4.89 |
Uploader /wp-admin/admin.php?page=bulk-images-to-post | 3.27 | 30.34 |
Settings /wp-admin/admin.php?page=bip-settings-page | 3.26 | 33.01 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Images to Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.19 ▼1.40 | 1.65 ▼0.08 | 40.57 ▼2.47 |
Dashboard /wp-admin | 2,249 ▲58 | 5.81 ▲0.91 | 97.84 ▼6.45 | 41.98 ▼0.14 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.03 ▼0.00 | 40.75 ▲4.70 | 38.49 ▲5.26 |
Add New Post /wp-admin/post-new.php | 1,566 ▲33 | 22.87 ▼0.24 | 729.00 ▲47.40 | 58.34 ▼2.57 |
Media Library /wp-admin/upload.php | 1,428 ▲49 | 4.23 ▲0.05 | 100.14 ▼3.95 | 48.22 ▼1.01 |
Uploader /wp-admin/admin.php?page=bulk-images-to-post | 916 | 2.04 | 31.51 | 31.59 |
Settings /wp-admin/admin.php?page=bip-settings-page | 1,060 | 1.99 | 41.24 | 27.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/images-to-posts/includes/bip-category-walker.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/images-to-posts/includes/bip-dropzone.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/images-to-posts/includes/bip-category-walker.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/images-to-posts/bulk-images-to-posts.php:16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/images-to-posts/includes/bip-category-walker.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=bulk-images-to-post
- > Javascript (severe) in unknown
/wp-content/plugins/images-to-posts/js/dropzone.js?ver=6.3.1 433:14 Uncaught Error: No URL provided.
- > GET request to /wp-admin/admin.php?page=bip-settings-page
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: Invalid dropzone element.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Donate link: Please fix this invalid URI: "paypal.me/adamneuwirth"
images-to-posts/bulk-images-to-posts.php 92% from 13 tests
The main file in "Images to Posts" v. 3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("images-to-posts.php" instead of "bulk-images-to-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,713 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 119 | 57 | 1,639 |
CSS | 3 | 23 | 38 | 503 |
PHP | 4 | 66 | 50 | 335 |
PO File | 2 | 60 | 62 | 173 |
Markdown | 1 | 31 | 0 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin