84% simple-image-popup-shortcode

Code Review | Simple Image Popup Shortcode

WordPress plugin Simple Image Popup Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: simple-image-popu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Oct 27, 2016
  • Number of updates: 23
  • Update frequency: every 71.7 days
  • Top authors: purvabathe (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /1,916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Simple Image Popup Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.13 ▼3.99
Dashboard /wp-admin3.31 ▲0.0049.23 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0048.47 ▼1.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.66 ▼3.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.43 ▼4.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Image Popup Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.44 ▼1.159.22 ▲7.4644.33 ▲3.71
Dashboard /wp-admin2,198 ▲185.63 ▼0.0582.88 ▼6.9639.48 ▼5.69
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0139.40 ▲0.8339.65 ▲6.74
Add New Post /wp-admin/post-new.php1,526 ▼517.86 ▼5.70596.34 ▼77.9547.40 ▼6.14
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0196.78 ▼15.8645.20 ▼0.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-image-popup-shortcode/sips-popup.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
3 plugin tags: simple image popup, popup box, purva bathe

simple-image-popup-shortcode/sips-popup.php 92% from 13 tests

The primary PHP file in "Simple Image Popup Shortcode" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-image-popup-shortcode.php" instead of "sips-popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin156 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS119892
PHP16842
JavaScript110922

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin