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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.55ms] Passed 4 tests
Analyzing server-side resources used by hiWeb Image Orient
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 32.30 ▼9.87 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.45 ▼2.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.58 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.06 ▼5.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.53 ▼0.05 |
hiWeb Images ReOrient /wp-admin/tools.php?page=hw-image-orient-tool | 3.23 | 30.95 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for hiWeb Image Orient
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.25 ▼1.18 | 4.34 ▲2.28 | 41.50 ▲0.41 |
Dashboard /wp-admin | 2,211 ▲23 | 5.82 ▼0.06 | 96.71 ▼2.18 | 38.03 ▼5.49 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▼0.01 | 47.65 ▲14.85 | 38.61 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 18.04 ▼5.12 | 600.92 ▼68.56 | 45.94 ▼6.72 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.21 ▼0.02 | 93.03 ▼17.16 | 39.96 ▼6.38 |
hiWeb Images ReOrient /wp-admin/tools.php?page=hw-image-orient-tool | 778 | 2.03 | 28.47 | 31.42 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-image-orient/inc/ajax.php:10
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-image-orient/inc/define.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hiweb-image-orient/inc/hooks.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/hiweb-image-orient/template/_hw_io_tool_template.php:3
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-image-orient/inc/define.php on line 12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-image-orient/inc/define.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-image-orient/inc/define.php on line 12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-image-orient/inc/define.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-image-orient/inc/define.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-image-orient/inc/adminmenu.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (When you upload photos, the plugin reads EXIF meta data and turns the photos if needed. Uploading may be longer than usual.), #2 (If you already downloaded the pictures that have the wrong orientation, the plugin provides batch processing.), #3 (Batch processing has a minimum of controls), #4 (After you download or batch processing, all photos will automatically have the correct angle.)
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
- Donate link: Invalid URI ("")
hiweb-image-orient/hiweb-image-orient.php Passed 13 tests
The principal PHP file in "hiWeb Image Orient" v. 1.1 is loaded by WordPress automatically on each request
71 characters long description:
This plugin read EXIF meta data, read orient info and auto-rotate image
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin238 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 24 | 51 | 172 |
JavaScript | 1 | 11 | 4 | 55 |
CSS | 1 | 2 | 1 | 7 |
Sass | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.61MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 119.80KB | 43.16KB | ▼ 63.97% |
screenshot-3.png | 42.04KB | 20.96KB | ▼ 50.14% |
screenshot-2.png | 234.94KB | 79.84KB | ▼ 66.02% |
screenshot-4.png | 224.99KB | 75.62KB | ▼ 66.39% |