Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼2.71ms] Passed 4 tests
Server-side resources used by Save as Image plugin by Pdfcrowd
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 37.85 ▼2.62 |
Dashboard /wp-admin | 3.73 ▲0.38 | 48.57 ▼14.11 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 51.47 ▲5.50 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 97.16 ▲1.39 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 36.42 ▲4.49 |
Save as Image /wp-admin/options-general.php?page=save-as-image-pdfcrowd | 3.89 | 38.30 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Save as Image plugin by Pdfcrowd
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲159 | 13.62 ▼0.89 | 9.32 ▲7.40 | 46.78 ▲2.66 |
Dashboard /wp-admin | 2,221 ▲43 | 4.88 ▼0.81 | 96.57 ▼18.27 | 38.31 ▼3.65 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.30 ▲0.35 | 41.45 ▲3.12 | 35.26 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,562 ▲31 | 25.39 ▲2.63 | 622.49 ▲14.91 | 44.35 ▼3.36 |
Media Library /wp-admin/upload.php | 1,433 ▲39 | 4.36 ▲0.20 | 92.67 ▼2.50 | 39.99 ▼1.53 |
Save as Image /wp-admin/options-general.php?page=save-as-image-pdfcrowd | 5,893 | 3.33 | 84.32 | 55.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/appearance.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/behavior.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/wizard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/appearance.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/save-as-image-pdfcrowd-admin-display.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/license-settings.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/save-as-image-by-pdfcrowd/admin/partials/mode.php:39
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
save-as-image-by-pdfcrowd/save-as-image-pdfcrowd.php 85% from 13 tests
"Save as Image plugin by Pdfcrowd" version 3.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("save-as-image-by-pdfcrowd.php" instead of "save-as-image-pdfcrowd.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,261 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 449 | 636 | 5,597 |
CSS | 4 | 141 | 0 | 660 |
JavaScript | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 178)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 68.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 281.00 |
Average method complexity | 7.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 178.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 | 77 | |
▷ Static methods | 32 | 41.56% |
▷ Public methods | 38 | 49.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 39 | 50.65% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected