84% theme-blvd-image-sizes

Code Review | Theme Blvd Image Sizes

WordPress plugin Theme Blvd Image Sizes scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-image-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 2, 2012
  • Latest release: Sep 7, 2015
  • Number of updates: 23
  • Update frequency: every 57.1 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,674 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.03MB] [CPU: ▼6.72ms] Passed 4 tests

Server-side resources used by Theme Blvd Image Sizes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.49 ▼9.26
Dashboard /wp-admin3.35 ▲0.0041.04 ▼15.41
Posts /wp-admin/edit.php3.40 ▲0.0445.74 ▲2.52
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.00 ▼2.24
Media Library /wp-admin/upload.php3.27 ▲0.0436.39 ▲0.02

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Blvd Image Sizes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.164.04 ▲2.2439.20 ▼4.31
Dashboard /wp-admin2,210 ▲215.86 ▲0.92110.08 ▼1.1743.06 ▲0.60
Posts /wp-admin/edit.php2,092 ▼01.99 ▲0.0039.04 ▲0.1637.86 ▲1.81
Add New Post /wp-admin/post-new.php1,543 ▲1023.38 ▲0.16595.41 ▼49.8352.52 ▼17.47
Media Library /wp-admin/upload.php1,395 ▲104.22 ▲0.01101.11 ▼4.1843.22 ▲0.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-image-sizes/themeblvd-image-sizes.php:30

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

theme-blvd-image-sizes/themeblvd-image-sizes.php 92% from 13 tests

The entry point to "Theme Blvd Image Sizes" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-blvd-image-sizes.php" instead of "themeblvd-image-sizes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin196 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16690196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin