94% disable-pdf-thumbnails

Code Review | Disable PDF Thumbnails

WordPress plugin Disable PDF Thumbnails scored 94% from 53 tests.

About plugin

  • Plugin page: disable-pdf-thumb...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Feb 15, 2017
  • Latest release: Jul 23, 2021
  • Number of updates: 12
  • Update frequency: every 134.9 days
  • Top authors: jennettefulda (100%)

Code review

53 tests

User reviews

1 review

Install metrics

30+ active / 953 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.76 ▼1.38
Dashboard /wp-admin3.06 ▲0.0148.01 ▲5.12
Posts /wp-admin/edit.php3.11 ▲0.0036.77 ▼6.00
Add New Post /wp-admin/post-new.php5.42 ▼0.0183.70 ▼2,218.64
Media Library /wp-admin/upload.php3.00 ▼0.0038.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲9615.94 ▲0.357.12 ▼1.8049.41 ▲4.05
Dashboard /wp-admin2,962 ▲1125.96 ▲0.14138.16 ▲0.20113.31 ▲7.81
Posts /wp-admin/edit.php2,706 ▲32.68 ▼0.0168.96 ▲7.4985.87 ▲1.88
Add New Post /wp-admin/post-new.php1,851 ▲33117.83 ▼0.50376.97 ▼11.98107.84 ▼0.91
Media Library /wp-admin/upload.php1,772 ▼05.01 ▲0.02141.24 ▼6.36113.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:
LanguageFilesBlank linesComment linesLines of code
PHP16288

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 code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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