89% ssm-image-import-helper

Code Review | SSM Image Import Helper

WordPress plugin SSM Image Import Helper scored89%from 54 tests.

About plugin

  • Plugin page: ssm-image-import-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 10, 2017
  • Latest release: Dec 8, 2018
  • Number of updates: 5
  • Update frequency: every 103.2 days
  • Top authors: bmeisler (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /719 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by SSM Image Import Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.26 ▼7.40
Dashboard /wp-admin3.31 ▼0.0442.44 ▼17.36
Posts /wp-admin/edit.php3.36 ▲0.0041.66 ▼3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.04 ▼15.30
Media Library /wp-admin/upload.php3.23 ▲0.0034.73 ▲3.82

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SSM Image Import Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.68 ▼0.944.14 ▲2.4238.39 ▼4.46
Dashboard /wp-admin2,206 ▲274.84 ▼0.13102.62 ▼6.5940.76 ▼3.25
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0638.69 ▲0.6334.85 ▼0.16
Add New Post /wp-admin/post-new.php1,533 ▲1922.98 ▲5.41589.05 ▼34.6453.88 ▲1.76
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0298.40 ▲2.9343.35 ▲1.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

ssm-image-import-helper/SSMImageImportHelper.php 92% from 13 tests

The principal PHP file in "SSM Image Import Helper" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ssm-image-import-helper.php" instead of "SSMImageImportHelper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin88 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3328588

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected