68% reviewpopup

Code Review | reviewpopup

WordPress plugin reviewpopup scored68%from 54 tests.

About plugin

  • Plugin page: reviewpopup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2012
  • Latest release: Nov 20, 2012
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: arjunjain08 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /725 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.54ms] Passed 4 tests

Analyzing server-side resources used by reviewpopup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.00 ▼1.28
Dashboard /wp-admin3.38 ▲0.0846.93 ▼4.92
Posts /wp-admin/edit.php3.43 ▲0.0849.42 ▼0.77
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.70 ▼15.18
Media Library /wp-admin/upload.php3.30 ▲0.0836.92 ▲0.18
ReviewPopUp /wp-admin/admin.php?page=reviewpopup3.3633.07
Add New Review /wp-admin/admin.php?page=add-new-review3.3630.02
Settings /wp-admin/admin.php?page=reviewpopup-settings3.3636.33

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: 2 new tables, 7 new options
New tables
wp_reviewboxdata
wp_reviewboxsettings
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
reviewpopup_db_version

Browser metrics Passed 4 tests

A check of browser resources used by reviewpopup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲19114.50 ▲0.1015.25 ▲13.1643.26 ▼3.29
Dashboard /wp-admin2,234 ▲495.84 ▲0.7797.16 ▼20.2939.66 ▼8.87
Posts /wp-admin/edit.php2,120 ▲312.04 ▲0.0139.93 ▲4.6135.55 ▼1.59
Add New Post /wp-admin/post-new.php1,559 ▲1223.20 ▲4.73642.37 ▲33.7746.86 ▼3.12
Media Library /wp-admin/upload.php1,422 ▲344.23 ▼0.01101.41 ▲2.1142.86 ▼2.47
ReviewPopUp /wp-admin/admin.php?page=reviewpopup7852.0624.8324.46
Add New Review /wp-admin/admin.php?page=add-new-review7892.0623.8624.73
Settings /wp-admin/admin.php?page=reviewpopup-settings9552.0623.7435.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_reviewboxdata
    • wp_reviewboxsettings
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • reviewpopup_db_version
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=add-new-review
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+127
    Undefined variable: js
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+209
    Undefined index: boxtitle
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+213
    Undefined index: boxnextlink
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+217
    Undefined index: boxnextlinkanchor
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+221
    Undefined index: nor
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+225
    Undefined index: nvr
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+233
    Undefined index: rbw
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+237
    Undefined index: rlength
    • > GET request to /wp-admin/admin.php?page=reviewpopup-settings
    • > Notice in wp-content/plugins/reviewpopup/reviewpopup.php+241
    Undefined index: stylesheeturl

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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/reviewpopup/reviewpopup.php:14

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 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
5 plugin tags: display review, home page message, alert message, show popup message, display message

reviewpopup/reviewpopup.php Passed 13 tests

"reviewpopup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
Display review pop up box on home page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected629 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24283629

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin