89% ultimate-post-thumbnails

Code Review | Ultimate Post Thumbnails

WordPress plugin Ultimate Post Thumbnails scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-post-thu...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 4, 2017
  • Latest release: Jan 15, 2017
  • Number of updates: 19
  • Update frequency: every 0.2 days
  • Top authors: kamiyeye (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,631 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.52MB] [CPU: ▲3.70ms] Passed 4 tests

An overview of server-side resources used by Ultimate Post Thumbnails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5755.06 ▲14.50
Dashboard /wp-admin3.86 ▲0.5554.27 ▼0.29
Posts /wp-admin/edit.php3.91 ▲0.5557.52 ▲5.01
Add New Post /wp-admin/post-new.php6.39 ▲0.5092.57 ▼2.64
Media Library /wp-admin/upload.php3.72 ▲0.4847.64 ▲12.73
Thumbnails /wp-admin/options-general.php?page=upt-options3.9543.71
About Ultimate Post Thumbnails /wp-admin/index.php?page=upt-about3.6843.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 262 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
upt_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Post Thumbnails
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲20113.82 ▼0.8012.26 ▲10.3037.75 ▼5.03
Dashboard /wp-admin2,240 ▲634.97 ▼0.6198.23 ▲0.4041.62 ▲1.36
Posts /wp-admin/edit.php2,156 ▲562.40 ▲0.3742.36 ▲6.4533.87 ▼1.16
Add New Post /wp-admin/post-new.php1,567 ▲3923.20 ▼0.17624.58 ▼71.8233.87 ▼18.10
Media Library /wp-admin/upload.php1,451 ▲574.58 ▲0.29101.68 ▲0.9644.19 ▲1.04
Thumbnails /wp-admin/options-general.php?page=upt-options1,3833.4762.4648.93
About Ultimate Post Thumbnails /wp-admin/index.php?page=upt-about9392.2528.6766.57

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ultimate-post-thumbnails === )
Please take inspiration from this readme.txt

ultimate-post-thumbnails/ultimate-post-thumbnails.php 92% from 13 tests

This is the main PHP file of "Ultimate Post Thumbnails" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)

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 detected44,416 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
CSS241,97730720,893
JavaScript312,8121,72710,211
LESS471,2381,2645,955
SVG6033,574
PHP317707453,470
HTML11201235
Markdown130078

PHP code Passed 2 tests

An overview 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.49
Average class complexity29.45
▷ Minimum class complexity4.00
▷ Maximum class complexity69.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods93
▷ Static methods99.68%
▷ Public methods9298.92%
▷ Protected methods11.08%
▷ Private methods00.00%
Functions100
▷ Named functions100100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
67 PNG files occupy 0.88MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
common/lib/prettyphoto/images/prettyPhoto/light_square/btnNext.png1.38KB1.14KB▼ 17.29%
(invalid) common/lib/colorpicker/images/colorpicker_hsb_h.png0.99KB0.00KB▼ 100.00%
(invalid) common/lib/colorpicker/images/custom_hsb_h.png0.95KB0.00KB▼ 100.00%
common/lib/prettyphoto/images/prettyPhoto/dark_square/sprite.png3.42KB2.13KB▼ 37.67%
(invalid) common/lib/colorpicker/images/select.png0.49KB0.00KB▼ 100.00%