Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.26ms] Passed 4 tests
A check of server-side resources used by WP Tesseract
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.23 ▼0.92 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.64 ▲0.65 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.17 ▼1.63 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.14 ▼15.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.33 ▲1.51 |
Tesseract /wp-admin/options-general.php?page=wp-tesseract/admin/class-wp-tesseract-admin.php | 3.26 | 34.54 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
ocr_language_string |
theysaidso_admin_options |
ocr_resize_percent |
widget_theysaidso_widget |
ocr_tesseract_path |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Tesseract
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.40 ▼0.95 | 8.77 ▲7.02 | 36.73 ▼8.59 |
Dashboard /wp-admin | 2,206 ▲26 | 5.64 ▼0.02 | 88.76 ▼3.96 | 41.57 ▲1.76 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.02 | 35.08 ▼2.32 | 37.21 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.80 ▲5.57 | 665.96 ▲32.72 | 54.94 ▼10.88 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▼0.00 | 97.36 ▼8.56 | 46.82 ▼1.07 |
Tesseract /wp-admin/options-general.php?page=wp-tesseract/admin/class-wp-tesseract-admin.php | 867 | 1.99 | 22.21 | 43.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-tesseract/public/partials/wp-tesseract-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-tesseract/admin/partials/wp-tesseract-admin-display.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in wp-tesseract/assets to your readme.txt
wp-tesseract/wp-tesseract.php Passed 13 tests
Analyzing the main PHP file in "WP Tesseract" version 1.0.2
96 characters long description:
Add Tesseract's OCR (image-to-text) functionality to WordPress. Requires pre-installed software.
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 detected364 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 137 | 577 | 318 |
Markdown | 1 | 22 | 0 | 40 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin