84% pdf-thumbnails-support-test

Code Review | PDF Thumbnails Support Test

WordPress plugin PDF Thumbnails Support Test scored84%from 54 tests.

About plugin

  • Plugin page: pdf-thumbnails-su...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.5
  • WordPress version: 6.3.1
  • First release: Dec 7, 2016
  • Latest release: Apr 12, 2018
  • Number of updates: 12
  • Update frequency: every 40.5 days
  • Top authors: eclev91 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /4,405 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.84 ▼4.04
Dashboard /wp-admin3.33 ▼0.0243.04 ▼17.62
Posts /wp-admin/edit.php3.38 ▲0.0245.31 ▼2.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.67 ▼15.14
Media Library /wp-admin/upload.php3.25 ▲0.0235.54 ▲2.54
PDF Thumbnails Support Test /wp-admin/tools.php?page=pdf-thumbnails-support-test3.2331.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.041.66 ▲0.0141.41 ▼1.84
Dashboard /wp-admin2,210 ▲225.90 ▲1.01110.83 ▲11.3442.83 ▼1.19
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0139.37 ▼4.6037.76 ▲3.52
Add New Post /wp-admin/post-new.php1,545 ▲1318.36 ▼5.20632.22 ▲3.0054.75 ▲7.47
Media Library /wp-admin/upload.php1,395 ▲44.29 ▲0.0199.92 ▼2.4445.69 ▲2.55
PDF Thumbnails Support Test /wp-admin/tools.php?page=pdf-thumbnails-support-test8172.0623.2828.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP106552246
JSON10036
Markdown131035

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 code0.34
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes222.22%
▷ Concrete classes777.78%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods1565.22%
▷ Protected methods730.43%
▷ Private methods14.35%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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