84% edit-image-thumbnails-separately

Code Review | Edit Image Thumbnails Separately

WordPress plugin Edit Image Thumbnails Separately scored84%from 54 tests.

About plugin

  • Plugin page: edit-image-thumbn...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 8, 2023
  • Latest release: Aug 4, 2023
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: azaozz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Edit Image Thumbnails Separately
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.26 ▲5.11
Dashboard /wp-admin3.31 ▲0.0047.04 ▼11.84
Posts /wp-admin/edit.php3.36 ▲0.0049.21 ▼3.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.62 ▼24.47
Media Library /wp-admin/upload.php3.23 ▲0.0040.63 ▲5.60

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Edit Image Thumbnails Separately
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.331.69 ▲0.0539.24 ▼5.09
Dashboard /wp-admin2,195 ▲245.63 ▲0.1095.26 ▲2.5741.34 ▲0.44
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0140.60 ▲3.1837.45 ▼3.35
Add New Post /wp-admin/post-new.php1,528 ▲222.85 ▼0.82615.97 ▼37.8466.28 ▲13.78
Media Library /wp-admin/upload.php1,400 ▲64.21 ▼0.0495.28 ▼6.6542.53 ▼8.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edit-image-thumbnails-separately/edit-image-thumbnails-separately.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 uses markdown syntax to describe your plugin to the world
No plugin tags provided

edit-image-thumbnails-separately/edit-image-thumbnails-separately.php Passed 13 tests

This is the main PHP file of "Edit Image Thumbnails Separately" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Re-enables editing of the thumbnail size of images separately.

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
No dangerous file extensions were detected2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11212

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin