84% thumb

Code Review | autometa's THUMB

WordPress plugin autometa's THUMB scored84%from 54 tests.

About plugin

  • Plugin page: thumb
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2018
  • Latest release: Jan 18, 2018
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼3.01ms] Passed 4 tests

A check of server-side resources used by autometa's THUMB
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.12 ▼3.47
Dashboard /wp-admin3.31 ▲0.0043.95 ▼4.27
Posts /wp-admin/edit.php3.36 ▲0.0043.86 ▼3.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.43 ▼0.22
Media Library /wp-admin/upload.php3.23 ▲0.0035.86 ▼0.36

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for autometa's THUMB
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.27 ▼0.981.86 ▲0.1039.65 ▼7.03
Dashboard /wp-admin2,206 ▲215.90 ▲0.09104.35 ▼7.2139.94 ▼4.25
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0336.33 ▼5.3332.18 ▼5.50
Add New Post /wp-admin/post-new.php1,542 ▲2118.32 ▼5.02591.87 ▼71.8452.47 ▲5.60
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0494.19 ▼4.1141.58 ▼4.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/thumb/thumb.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: featured image, automation, metadata, shortcode, thumbnail

thumb/thumb.php Passed 13 tests

The main PHP script in "autometa's THUMB" version 2.2 is automatically included on every request by WordPress
90 characters long description:
It repdoduces featured images in pages, posts, portfolios or products simply via: [thumb].

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
Good job! No executable or dangerous file extensions detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15227

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected