Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼555.93ms] Passed 4 tests
An overview of server-side resources used by Disable PDF Thumbnails
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 31.76 ▼1.38 |
Dashboard /wp-admin | 3.06 ▲0.01 | 48.01 ▲5.12 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 36.77 ▼6.00 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 83.70 ▼2,218.64 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 38.93 ▲2.31 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Disable PDF Thumbnails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲96 | 15.94 ▲0.35 | 7.12 ▼1.80 | 49.41 ▲4.05 |
Dashboard /wp-admin | 2,962 ▲112 | 5.96 ▲0.14 | 138.16 ▲0.20 | 113.31 ▲7.81 |
Posts /wp-admin/edit.php | 2,706 ▲3 | 2.68 ▼0.01 | 68.96 ▲7.49 | 85.87 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,851 ▲331 | 17.83 ▼0.50 | 376.97 ▼11.98 | 107.84 ▼0.91 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.01 ▲0.02 | 141.24 ▼6.36 | 113.36 ▼3.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/disable-pdf-thumbnails/disable-pdf-thumbnails.php
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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: disable, thumbnails, pdf, images, image...
disable-pdf-thumbnails/disable-pdf-thumbnails.php Passed 13 tests
The entry point to "Disable PDF Thumbnails" version 1.3 is a PHP file that has certain tags in its header comment area
74 characters long description:
Disables WordPress from generating image thumbnails when you upload a PDF.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 28 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 1 | |
▷ Named functions | 1 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin