Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.61ms] Passed 4 tests
A check of server-side resources used by Image to Text
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.31 ▲1.00 |
Dashboard /wp-admin | 3.32 ▼0.02 | 41.58 ▼12.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 41.04 ▼2.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.62 ▼5.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.76 ▼1.91 |
Image to Text /wp-admin/options-general.php?page=ImageToText | 3.21 | 30.00 |
Server storage [IO: ▲13.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
image_to_text |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image to Text
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲28 | 14.42 ▼0.11 | 1.67 ▼0.16 | 37.98 ▼5.43 |
Dashboard /wp-admin | 2,205 ▲31 | 5.56 ▼0.01 | 80.15 ▼4.94 | 35.53 ▼3.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.00 | 33.27 ▼2.76 | 32.34 ▼4.57 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,663 | 19.03 ▼4.23 | 898.62 ▲199.35 | 51.91 ▼0.96 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.15 ▲0.05 | 94.81 ▼9.72 | 44.10 ▲0.14 |
Image to Text /wp-admin/options-general.php?page=ImageToText | 1,294 | 2.63 | 59.93 | 28.31 |
Uninstaller [IO: ▲13.19MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/image-to-text/lib/class-imagetotext.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/image-to-text/lib/class-imagetotextadmin.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/image-to-text/lib/class-imagetotext.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: block, text, font, shortcode, image
image-to-text/imagetotext.php 92% from 13 tests
The main PHP file in "Image to Text" ver. 2.08 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("image-to-text.php" instead of "imagetotext.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected660 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 244 | 540 |
JavaScript | 3 | 12 | 17 | 100 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 0 | 0.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 37.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin