Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲1.84ms] Passed 4 tests
This is a short check of server-side resources used by WP Power OCR
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.74 ▼0.18 |
Dashboard /wp-admin | 3.36 ▲0.06 | 55.51 ▼0.37 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 60.69 ▲9.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.53 ▼1.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 44.94 ▲9.51 |
Settings /wp-admin/admin.php?page=wp_power_ocr_settings | 3.26 | 37.50 |
WP Power OCR /wp-admin/admin.php?page=wp_power_ocr | 3.26 | 37.92 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
wpo_username |
can_compress_scripts |
widget_theysaidso_widget |
wpo_licence_code |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wpo_language |
Browser metrics Passed 4 tests
Checking browser requirements for WP Power OCR
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 14.79 ▲0.57 | 1.78 ▼0.09 | 39.53 ▼6.26 |
Dashboard /wp-admin | 2,369 ▲181 | 6.52 ▲0.51 | 139.13 ▲32.14 | 93.41 ▲49.28 |
Posts /wp-admin/edit.php | 2,296 ▲207 | 3.42 ▲1.37 | 54.81 ▲17.64 | 82.69 ▲47.07 |
Add New Post /wp-admin/post-new.php | 1,706 ▲173 | 22.45 ▼0.59 | 650.25 ▼39.25 | 37.30 ▼27.76 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.15 ▼0.07 | 93.76 ▼15.00 | 86.14 ▲39.21 |
Settings /wp-admin/admin.php?page=wp_power_ocr_settings | 1,217 | 3.08 | 41.86 | 68.63 |
WP Power OCR /wp-admin/admin.php?page=wp_power_ocr | 1,217 | 3.08 | 39.95 | 62.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-power-ocr-free/wp-power-ocr-free.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-power-ocr-free/views/importer.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-power-ocr-free/views/settings.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: image extraction, document text extraction, ocr, text recognition, image importer...
wp-power-ocr-free/wp-power-ocr-free.php 85% from 13 tests
"WP Power OCR" version 1.04's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
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
No dangerous file extensions were detected368 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 37 | 286 |
CSS | 1 | 14 | 0 | 82 |
PHP code Passed 2 tests
Analyzing 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.29 |
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 | 9 | |
▷ Named functions | 9 | 100.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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pro.png | 24.10KB | 8.81KB | ▼ 63.46% |
images/icon.png | 0.42KB | 0.35KB | ▼ 17.25% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |
images/add.png | 1.09KB | 1.21KB | 0.00% |
images/go.png | 1.20KB | 1.27KB | 0.00% |