84% tiny-default-thumbnail

Code Review | Tiny Default Thumbnail

WordPress plugin Tiny Default Thumbnail scored84%from 54 tests.

About plugin

  • Plugin page: tiny-default-thum...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Mar 26, 2021
  • Latest release: Mar 26, 2021
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: vincentdubroeucq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.40ms] Passed 4 tests

This is a short check of server-side resources used by Tiny Default Thumbnail
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0328.78 ▼6.36
Dashboard /wp-admin3.31 ▲0.0142.10 ▼4.90
Posts /wp-admin/edit.php3.36 ▲0.0145.04 ▼3.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.20 ▼6.90
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▲2.53

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Tiny Default Thumbnail: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5013.31 ▼0.861.66 ▼0.1142.16 ▲2.47
Dashboard /wp-admin2,206 ▲175.85 ▲0.98109.31 ▼4.1841.71 ▼0.01
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0340.17 ▼0.2736.27 ▲0.97
Add New Post /wp-admin/post-new.php1,534 ▲1423.40 ▲0.28648.65 ▼18.9562.32 ▲3.72
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0698.71 ▼4.1443.42 ▼0.48

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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_action() in wp-content/plugins/tiny-default-thumbnail/tiny-default-thumbnail.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: thumbnail, featured image

tiny-default-thumbnail/tiny-default-thumbnail.php Passed 13 tests

The main PHP script in "Tiny Default Thumbnail" version 0.1.1 is automatically included on every request by WordPress
44 characters long description:
Allows to add a default thumbnail for posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected70 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114939
PO File17931

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin