Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/pdftoimg-viewer/PDFtoIMG.php+65
Undefined variable: pagenow
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.18ms] Passed 4 tests
Analyzing server-side resources used by PDFtoIMG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.80 ▼1.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.84 ▼4.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 41.47 ▼5.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.79 ▼16.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.23 ▲0.88 |
File Management /wp-admin/admin.php?page=PDFtoIMG | 3.22 | 31.86 |
File Upload /wp-admin/admin.php?page=PDFtoIMG_file_upload | 3.22 | 31.41 |
Server storage [IO: ▲3.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDFtoIMG
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 13.92 ▼0.46 | 24.66 ▲22.86 | 42.21 ▲1.28 |
Dashboard /wp-admin | 2,241 ▲56 | 5.85 ▲0.97 | 101.28 ▼3.97 | 79.37 ▲37.13 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.97 ▼0.04 | 36.31 ▼0.53 | 31.81 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,552 ▲32 | 23.21 ▼0.00 | 699.47 ▲62.32 | 50.01 ▼14.77 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.10 ▼0.12 | 96.92 ▼0.24 | 80.20 ▲37.45 |
File Management /wp-admin/admin.php?page=PDFtoIMG | 877 | 1.95 | 28.90 | 44.52 |
File Upload /wp-admin/admin.php?page=PDFtoIMG_file_upload | 854 | 1.95 | 25.00 | 29.48 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=PDFtoIMG_file_upload
- > Network (severe)
wp-content/plugins/pdf-to-img/img/PDFtoIMG_icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("https:pitinca/no-donate/")
- Screenshots: Please add an image for screenshot #6 (screenshot-6.png)
pdftoimg-viewer/PDFtoIMG.php 85% from 13 tests
"PDFtoIMG" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pdftoimg-viewer.php" instead of "PDFtoIMG.php")
- Description: Keep the plugin description shorter than 140 characters (currently 379 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected58,156 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 600 | 149 | 54,891 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 5 | 108 | 120 | 484 |
Markdown | 1 | 59 | 0 | 84 |
CSS | 4 | 5 | 7 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 1 | 9.09% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/PDFtoIMG_icon.png | 1.64KB | 0.90KB | ▼ 44.97% |
img/PDFtoIMG_icon_logo.png | 3.12KB | 1.93KB | ▼ 37.97% |