79% itro-popup

Code Review | ITRO Popup Plugin

WordPress plugin ITRO Popup Plugin scored79%from 54 tests.

About plugin

  • Plugin page: itro-popup
  • Plugin version: 5.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2013
  • Latest release: Jun 14, 2023
  • Number of updates: 377
  • Update frequency: every 10.0 days
  • Top authors: ITRO (88.33%)lorenzopotenti (8.49%)martinalucaroni (2.92%)robertourbani (1.06%)

Code review

54 tests

User reviews

118 reviews

Install metrics

10,000+ active /418,847 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.38ms] Passed 4 tests

A check of server-side resources used by ITRO Popup Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1837.69 ▼11.11
Dashboard /wp-admin3.48 ▲0.1347.19 ▼14.34
Posts /wp-admin/edit.php3.60 ▲0.2345.22 ▲2.50
Add New Post /wp-admin/post-new.php6.08 ▲0.1983.94 ▼2.55
Media Library /wp-admin/upload.php3.41 ▲0.1735.07 ▲3.54
ITRO Popup /wp-admin/options-general.php?page=itro-popup/admin/popup-admin.php3.7272.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: 2 new tables, 7 new options
New tables
wp_itro_plugin_option
wp_itro_plugin_field
New WordPress options
itro_curr_ver
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ITRO Popup Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.80 ▼0.568.10 ▲6.4944.08 ▲1.66
Dashboard /wp-admin2,215 ▲475.71 ▲0.1387.58 ▼4.6441.21 ▲0.66
Posts /wp-admin/edit.php2,131 ▲312.48 ▲0.5033.96 ▼4.5831.82 ▼7.01
Add New Post /wp-admin/post-new.php1,543 ▲1423.19 ▼0.07685.02 ▲34.6340.46 ▼9.03
Media Library /wp-admin/upload.php1,430 ▲364.30 ▲0.1398.30 ▼2.6141.63 ▼5.04
ITRO Popup /wp-admin/options-general.php?page=itro-popup/admin/popup-admin.php2,4306.76144.38111.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_itro_plugin_field
    • wp_itro_plugin_option
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • itro_curr_ver
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).) image missing
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

itro-popup/mc-main.php 85% from 13 tests

The main PHP script in "ITRO Popup Plugin" version 5.2.6 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 296 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("itro-popup.php" instead of "mc-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,828 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP91981701,711
PO File55106841,062
JavaScript3167100967
CSS18459
JSON10020
HTML1309

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
8 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/question_mark.png0.44KB0.47KB0.00%
images/coffee.png6.52KB3.59KB▼ 44.97%
scripts/jscolor/hs.png2.62KB7.54KB0.00%
scripts/jscolor/hv.png2.80KB7.32KB0.00%
images/5_stars.png26.56KB9.24KB▼ 65.21%