94% rg-popup

Code Review | RG Popup

WordPress plugin RG Popup scored 94% from 54 tests.

About plugin

  • Plugin page: rg-popup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 5.8.1
  • First release: Sep 2, 2020
  • Latest release: Sep 2, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: riangraphics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼140.05ms] Passed 4 tests

An overview of server-side resources used by RG Popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1639.21 ▲13.79
Dashboard /wp-admin3.11 ▲0.0547.35 ▲8.99
Posts /wp-admin/edit.php3.16 ▲0.0547.61 ▼2.34
Add New Post /wp-admin/post-new.php5.47 ▲0.0492.23 ▼556.14
Media Library /wp-admin/upload.php3.05 ▲0.0431.71 ▼10.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by RG Popup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲9715.75 ▲0.1810.02 ▼2.3751.81 ▲1.31
Dashboard /wp-admin2,982 ▲485.93 ▼0.19146.48 ▼9.56124.13 ▲0.97
Posts /wp-admin/edit.php2,754 ▲152.71 ▼0.0169.89 ▲1.3198.48 ▲3.42
Add New Post /wp-admin/post-new.php1,510 ▼17318.54 ▼0.31398.58 ▼9.80113.09 ▼5.69
Media Library /wp-admin/upload.php1,822 ▲155.01 ▼0.03156.89 ▲4.47134.25 ▲0.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rg-popup/rg-popup.php:15

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 Passed 29 tests

readme.txt Passed 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
4 plugin tags: popup, popup styles, session popup, popup expiry date

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

"RG Popup" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
19 characters long description:
Simple popup plugin

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 plugin466 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17639466

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
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 were not PNG files found in your plugin