Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.94ms] Passed 4 tests
An overview of server-side resources used by PDF Thumbnails Support Test
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.84 ▼4.04 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.04 ▼17.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.31 ▼2.97 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.67 ▼15.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.54 ▲2.54 |
PDF Thumbnails Support Test /wp-admin/tools.php?page=pdf-thumbnails-support-test | 3.23 | 31.34 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF Thumbnails Support Test
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.04 | 1.66 ▲0.01 | 41.41 ▼1.84 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲1.01 | 110.83 ▲11.34 | 42.83 ▼1.19 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.01 | 39.37 ▼4.60 | 37.76 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,545 ▲13 | 18.36 ▼5.20 | 632.22 ▲3.00 | 54.75 ▲7.47 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.29 ▲0.01 | 99.92 ▼2.44 | 45.69 ▲2.55 |
PDF Thumbnails Support Test /wp-admin/tools.php?page=pdf-thumbnails-support-test | 817 | 2.06 | 23.28 | 28.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
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Eclev\\PdfThumbnailsTest\\Software\\SoftwareAbstract' not found in wp-content/plugins/pdf-thumbnails-support-test/src/PdfThumbnailsTest/Software/ImageMagick.php:5
- > PHP Fatal error
Uncaught Error: Class 'Eclev\\PdfThumbnailsTest\\Software\\SoftwareAbstract' not found in wp-content/plugins/pdf-thumbnails-support-test/src/PdfThumbnailsTest/Software/WordPress.php:5
- > PHP Fatal error
Uncaught Error: Class 'Eclev\\PdfThumbnailsTest\\Software\\SoftwareAbstract' not found in wp-content/plugins/pdf-thumbnails-support-test/src/PdfThumbnailsTest/Software/Ghostscript.php:5
- > PHP Fatal error
Uncaught Error: Class 'Eclev\\PdfThumbnailsTest\\Software\\SoftwareAbstract' not found in wp-content/plugins/pdf-thumbnails-support-test/src/PdfThumbnailsTest/Software/Imagick.php:5
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: pdf, thumbnail, media, attachments
pdf-thumbnails-support-test/pdf-thumbnails-test.php 92% from 13 tests
"PDF Thumbnails Support Test" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("pdf-thumbnails-support-test.php" instead of "pdf-thumbnails-test.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin317 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 65 | 52 | 246 |
JSON | 1 | 0 | 0 | 36 |
Markdown | 1 | 31 | 0 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 15 | 65.22% |
▷ Protected methods | 7 | 30.43% |
▷ Private methods | 1 | 4.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected