84% super-interactive-image-placeholders

Code Review | Super Interactive Image Placeholders

WordPress plugin Super Interactive Image Placeholders scored84%from 54 tests.

About plugin

  • Plugin page: super-interactive...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 14, 2021
  • Latest release: Dec 15, 2021
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: superinteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Super Interactive Image Placeholders
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.59 ▼1.86
Dashboard /wp-admin3.31 ▲0.0149.67 ▲3.82
Posts /wp-admin/edit.php3.37 ▲0.0149.02 ▼1.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.16 ▼15.62
Media Library /wp-admin/upload.php3.24 ▲0.0035.70 ▲1.94

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 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_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Super Interactive Image Placeholders
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.265.40 ▲3.1743.52 ▲0.74
Dashboard /wp-admin2,209 ▲244.79 ▼0.12107.55 ▲2.3937.33 ▼7.84
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0438.84 ▼6.0635.81 ▼2.01
Add New Post /wp-admin/post-new.php1,542 ▲618.47 ▼4.50642.02 ▲11.7464.89 ▲13.29
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0297.74 ▼1.1741.78 ▼2.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-interactive-image-placeholders/classes/class-core.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-interactive-image-placeholders/classes/class-core.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: development, uploads, placeholders, 404, local...

super-interactive-image-placeholders/si-image-placeholders.php 92% from 13 tests

The primary PHP file in "Super Interactive Image Placeholders" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("super-interactive-image-placeholders.php" instead of "si-image-placeholders.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
There were no executable files found in this plugin12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27912

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin