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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.00 ▼1.28 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.93 ▼4.92 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.42 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 86.70 ▼15.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 36.92 ▲0.18 |
ReviewPopUp /wp-admin/admin.php?page=reviewpopup | 3.36 | 33.07 |
Add New Review /wp-admin/admin.php?page=add-new-review | 3.36 | 30.02 |
Settings /wp-admin/admin.php?page=reviewpopup-settings | 3.36 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲191 | 14.50 ▲0.10 | 15.25 ▲13.16 | 43.26 ▼3.29 |
Dashboard /wp-admin | 2,234 ▲49 | 5.84 ▲0.77 | 97.16 ▼20.29 | 39.66 ▼8.87 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.04 ▲0.01 | 39.93 ▲4.61 | 35.55 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,559 ▲12 | 23.20 ▲4.73 | 642.37 ▲33.77 | 46.86 ▼3.12 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.23 ▼0.01 | 101.41 ▲2.11 | 42.86 ▼2.47 |
ReviewPopUp /wp-admin/admin.php?page=reviewpopup | 785 | 2.06 | 24.83 | 24.46 |
Add New Review /wp-admin/admin.php?page=add-new-review | 789 | 2.06 | 23.86 | 24.73 |
Settings /wp-admin/admin.php?page=reviewpopup-settings | 955 | 2.06 | 23.74 | 35.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 83 | 629 |
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 code | 0.36 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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