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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.49ms] Passed 4 tests
An overview of server-side resources used by Auto Post After Image Upload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.06 ▼12.19 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.25 ▼1.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.62 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.82 ▼2.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.49 ▲1.96 |
Auto Post After Image Upload /wp-admin/options-general.php?page=auto-post-after-image-upload | 3.22 | 33.73 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Auto Post After Image Upload
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.15 | 1.69 ▼0.06 | 43.13 ▲0.86 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▼0.10 | 96.24 ▼8.13 | 40.82 ▼0.42 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 39.30 ▲3.67 | 35.75 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,536 ▲19 | 23.11 ▲5.57 | 592.38 ▼61.79 | 54.87 ▲4.07 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▼0.01 | 95.20 ▼7.83 | 39.90 ▼6.94 |
Auto Post After Image Upload /wp-admin/options-general.php?page=auto-post-after-image-upload | 1,153 | 2.85 | 43.80 | 83.02 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=auto-post-after-image-upload
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/auto-post-after-image-upload/lib/APAIU_Functions.php+393
unserialize() expects parameter 1 to be string, array given
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=auto-post-after-image-upload
- > Other (warning) in unknown
/wp-admin/options-general.php?page=auto-post-after-image-upload - Failed to decode downloaded font: https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap
- > GET request to /wp-admin/options-general.php?page=auto-post-after-image-upload
- > Other (warning) in unknown
/wp-admin/options-general.php?page=auto-post-after-image-upload - OTS parsing error: invalid sfntVersion: 791289974
Optimizations
Plugin configuration 93% 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
6 plugin tags: post, auto post, image post, image upload, create post from image...
auto-post-after-image-upload/auto_post_after_image_upload.php 85% from 13 tests
Analyzing the main PHP file in "Auto Post After Image Upload" version 1.6
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 250 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("auto-post-after-image-upload.php" instead of "auto_post_after_image_upload.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
No dangerous file extensions were detected9,589 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 6 | 7 | 9,170 |
PHP | 3 | 75 | 35 | 371 |
JavaScript | 4 | 7 | 13 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 16 | |
▷ Static methods | 13 | 81.25% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin