94% mini-popup

Code Review | Mini PopUp

WordPress plugin Mini PopUp scored 94% from 54 tests.

About plugin

  • Plugin page: mini-popup
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 5.8.1
  • First release: Apr 22, 2012
  • Latest release: Aug 11, 2020
  • Number of updates: 54
  • Update frequency: every 56.2 days
  • Top authors: IagoMelanias (90.74%)claudiosanches (11.11%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 24,503 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼145.55ms] Passed 4 tests

Server-side resources used by Mini PopUp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1637.79 ▲18.04
Dashboard /wp-admin3.11 ▲0.0551.28 ▲0.44
Posts /wp-admin/edit.php3.16 ▲0.0546.52 ▼0.44
Add New Post /wp-admin/post-new.php5.47 ▲0.0393.04 ▼573.26
Media Library /wp-admin/upload.php3.05 ▲0.0530.36 ▼8.92
Mini PopUp /wp-admin/options-general.php?page=mini-popup3.0231.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
c2_minipopup
minipopup_style
minipopup_smart_mode
c4_minipopup
c3_minipopup
c1_minipopup

Browser metrics Passed 4 tests

A check of browser resources used by Mini PopUp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11616.12 ▲0.548.11 ▼2.2647.82 ▲0.51
Dashboard /wp-admin3,000 ▲666.52 ▲0.60145.07 ▲0.57123.21 ▲1.77
Posts /wp-admin/edit.php2,775 ▲363.01 ▲0.3269.20 ▼7.65127.89 ▲30.09
Add New Post /wp-admin/post-new.php1,704 ▲10015.31 ▼3.54393.12 ▲5.16113.44 ▼1.73
Media Library /wp-admin/upload.php1,840 ▲305.43 ▲0.40136.92 ▼33.19131.24 ▲5.29
Mini PopUp /wp-admin/options-general.php?page=mini-popup1,5272.9178.6296.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mini-popup/mini-popup.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Mini PopUp working.), #2 (The Mini Popup settings page.)
You can look at the official readme.txt

mini-popup/mini-popup.php Passed 13 tests

The main PHP file in "Mini PopUp" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Shows a popup to share your fanpage in your blog easily.

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
Everything looks great! No dangerous files found in this plugin420 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12424218
PO File262148162
JavaScript2105829
CSS10011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fanclose.png5.65KB2.00KB▼ 64.59%
images/bg.png0.09KB0.09KB0.00%