84% post-thumbnail-extras

Code Review | Post Thumbnail Extras

WordPress plugin Post Thumbnail Extras scored84%from 54 tests.

About plugin

  • Plugin page: post-thumbnail-ex...
  • Plugin version: 6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5+
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Dec 16, 2014
  • Number of updates: 19
  • Update frequency: every 32.5 days
  • Top authors: sewpafly (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /11,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.18ms] Passed 4 tests

This is a short check of server-side resources used by Post Thumbnail Extras
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0749.81 ▲0.81
Dashboard /wp-admin3.37 ▲0.0753.85 ▼0.20
Posts /wp-admin/edit.php3.49 ▲0.1355.38 ▼3.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.78 ▼9.76
Media Library /wp-admin/upload.php3.30 ▲0.0739.97 ▲3.80

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Post Thumbnail Extras: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.15 ▼0.261.80 ▼0.1141.78 ▲1.41
Dashboard /wp-admin2,195 ▲155.61 ▼0.0595.90 ▲2.7443.11 ▼3.75
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0433.85 ▼7.1537.68 ▼0.62
Add New Post /wp-admin/post-new.php1,528 ▼1822.95 ▼2.29690.39 ▲71.9570.82 ▲16.07
Media Library /wp-admin/upload.php1,400 ▲64.18 ▲0.0297.32 ▼5.0546.36 ▲4.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-thumbnail-extras/php/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/post-thumbnail-extras/php/shortcode.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/post-thumbnail-extras/post-thumbnail-extras.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tested up to: Invalid version format
Please take inspiration from this readme.txt

post-thumbnail-extras/post-thumbnail-extras.php Passed 13 tests

The main PHP file in "Post Thumbnail Extras" ver. 6.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Little things that make using post thumbnails easier

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin418 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35599363
JavaScript1161555

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.67
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin