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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼7.99ms] Passed 4 tests
Analyzing server-side resources used by Extract Text from Image - ETFI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 43.94 ▲4.75 |
Dashboard /wp-admin | 3.98 ▲0.67 | 55.78 ▲0.92 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 50.70 ▼3.39 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 94.19 ▼32.39 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 40.57 ▲2.91 |
Server storage [IO: ▲22.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,682 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Extract Text from Image - ETFI
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲133 | 13.42 ▼1.13 | 8.75 ▲6.97 | 42.24 ▼2.79 |
Dashboard /wp-admin | 2,211 ▲37 | 5.55 ▼0.12 | 94.78 ▲6.31 | 43.87 ▼0.63 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.03 ▲0.02 | 34.14 ▼17.87 | 33.99 ▼10.08 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.17 ▼0.34 | 675.64 ▼34.83 | 67.99 ▲1.12 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.21 ▲0.03 | 100.54 ▼2.52 | 41.43 ▼3.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 713× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/DataExchange/Exception/DataExchangeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/DevOpsGuru/DevOpsGuruClient.php:51
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/FMS/Exception/FMSException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/IoTEventsData/IoTEventsDataClient.php:31
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/GuzzleHttp/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/MWAA/Exception/MWAAException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/ResourceGroups/ResourceGroupsClient.php:41
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/SageMakerRuntime/SageMakerRuntimeClient.php:11
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\Shape' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/Api/MapShape.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/extract-text-from-image-etfi/vendor/Aws/Transfer/TransferClient.php:59
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3 in extract-text-from-image-etfi/assets to your readme.txt
extract-text-from-image-etfi/index.php 92% from 13 tests
The principal PHP file in "Extract Text from Image - ETFI" v. 1.2.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("extract-text-from-image-etfi.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin55,628 lines of code in 1,676 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,665 | 7,212 | 38,774 | 47,727 |
Markdown | 5 | 2,581 | 0 | 6,942 |
JavaScript | 3 | 35 | 15 | 610 |
CSS | 3 | 9 | 14 | 349 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 5.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 580 | |
Interfaces | 45 | |
Traits | 24 | |
Classes | 830 | |
▷ Abstract classes | 13 | 1.57% |
▷ Concrete classes | 817 | 98.43% |
▷ Final classes | 25 | 3.06% |
Methods | 2,423 | |
▷ Static methods | 417 | 17.21% |
▷ Public methods | 1,666 | 68.76% |
▷ Protected methods | 130 | 5.37% |
▷ Private methods | 627 | 25.88% |
Functions | 452 | |
▷ Named functions | 84 | 18.58% |
▷ Anonymous functions | 368 | 81.42% |
Constants | 297 | |
▷ Global constants | 40 | 13.47% |
▷ Class constants | 257 | 86.53% |
▷ Public constants | 257 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/background.png | 22.47KB | 9.85KB | ▼ 56.17% |
assets/images/screenshot-3.png | 125.67KB | 48.83KB | ▼ 61.15% |