10% default-featured-image-themed

Code Review | Default Featured Image Themed

WordPress plugin Default Featured Image Themed scored10%from 54 tests.

About plugin

  • Plugin page: default-featured-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: kayjoe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /341 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/default-featured-image-themed/default.php+284
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.79ms] Passed 4 tests

Analyzing server-side resources used by Default Featured Image Themed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.23 ▲3.43
Dashboard /wp-admin3.31 ▲0.0047.50 ▼2.14
Posts /wp-admin/edit.php3.36 ▲0.0044.45 ▼5.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.65 ▼14.31
Media Library /wp-admin/upload.php3.23 ▲0.0033.66 ▲2.99

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Default Featured Image Themed: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.57 ▼0.685.37 ▲3.5144.29 ▲3.34
Dashboard /wp-admin2,206 ▲214.87 ▼0.98104.35 ▲0.0139.09 ▼4.46
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0434.93 ▼6.0432.35 ▼4.01
Add New Post /wp-admin/post-new.php1,537 ▼423.19 ▲5.12660.21 ▲54.6152.73 ▼19.95
Media Library /wp-admin/upload.php1,391 ▼04.23 ▼0.0693.23 ▼13.0543.78 ▼1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/default-featured-image-themed/default.php on line 284

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: image, media

default-featured-image-themed/default.php 92% from 13 tests

This is the main PHP file of "Default Featured Image Themed" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("default-featured-image-themed.php" instead of "default.php")

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 detected175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19022172
CSS1103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/plugin-explained.png52.09KB24.77KB▼ 52.45%