Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/nertworks-super-mega-popup/nertworks-super-mega-popup.php+12
Undefined index: cookie_action
Server metrics [RAM: ▼1.69MB] [CPU: ▼190.96ms] Passed 4 tests
An overview of server-side resources used by NertWorks Super Mega Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.94 ▼0.78 | 9.18 ▼15.70 |
Dashboard /wp-admin | 1.96 ▼1.10 | 6.04 ▼45.49 |
Posts /wp-admin/edit.php | 1.96 ▼1.15 | 5.40 ▼37.66 |
Add New Post /wp-admin/post-new.php | 1.96 ▼3.48 | 6.87 ▼649.58 |
Media Library /wp-admin/upload.php | 1.96 ▼1.05 | 5.85 ▼31.09 |
Super Mega /wp-admin/options-general.php?page=super_mega-options | 1.96 | 6.50 |
Popups /wp-admin/edit.php?post_type=popups | 1.96 | 5.95 |
Add New /wp-admin/post-new.php?post_type=popups | 1.96 | 5.70 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 17 new options
New WordPress options |
---|
super_mega_popup_enabled |
colorbox_popup_height |
super_mega_popup_multi_site_all |
super_mega_popup_source |
super_mega_popup_colorbox_theme |
super_mega_popup_message1_heading |
popup_selection |
super_mega_include_stylesheets |
super_mega_popup_multi_site_enabled |
super_mega_colobox_mode |
... |
Browser metrics Passed 4 tests
A check of browser resources used by NertWorks Super Mega Popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,920 ▲348 | 16.66 ▲0.67 | 46.75 ▲35.54 | 55.25 ▲4.38 |
Dashboard /wp-admin | 3,010 ▲79 | 5.92 ▼0.05 | 153.14 ▲4.60 | 110.48 ▼1.52 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.73 ▲0.02 | 73.03 ▼10.18 | 88.00 ▼7.43 |
Add New Post /wp-admin/post-new.php | 1,709 ▲26 | 18.38 ▼0.41 | 470.31 ▲48.30 | 128.89 ▲14.00 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.07 ▲0.03 | 176.36 ▲11.39 | 136.53 ▼14.77 |
Super Mega /wp-admin/options-general.php?page=super_mega-options | 1,780 | 2.78 | 82.02 | 105.83 |
Popups /wp-admin/edit.php?post_type=popups | 2,152 | 2.68 | 97.07 | 88.24 |
Add New /wp-admin/post-new.php?post_type=popups | 2,870 | 8.99 | 230.26 | 135.11 |
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 plugin did not uninstall gracefully
- > Notice in wp-content/plugins/nertworks-super-mega-popup/nertworks-super-mega-popup.php+12
Undefined index: cookie_action
- The uninstall procedure has failed, leaving 17 options in the database
- super_mega_popup_message1_heading
- super_mega_popup_colorbox_theme
- super_mega_popup_multi_site_enabled
- super_mega_popup_enabled
- super_mega_popup_message1
- super_mega_theme_jquery_enabled
- super_mega_popup_multi_site_all
- super_mega_popup_source
- colorbox_popup_show_when_logged_in
- popup_selection
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popups
- > Notice in wp-content/plugins/nertworks-super-mega-popup/nertworks-super-mega-popup.php+12
Undefined index: cookie_action
- > GET request to /wp-admin/options-general.php?page=super_mega-options
- > Notice in wp-content/plugins/nertworks-super-mega-popup/nertworks-super-mega-popup.php+195
Undefined index: tab
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nertworks-super-mega-popup/iframe.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Rewrite' not found in wp-content/plugins/nertworks-super-mega-popup/nertworks-super-mega-popup.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=super_mega-options
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=super_mega-options 224:19 Uncaught TypeError: jQuery(...).slider is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Screenshot of the Settings Page.), #2 (Screenshot of the Popup Editor. Includes all Wordpress Editor features and plugs right into your Media Library.), #3 (Screenshot of the Builtin Colorbox Options.)
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
nertworks-super-mega-popup/nertworks-super-mega-popup.php Passed 13 tests
This is the main PHP file of "NertWorks Super Mega Popup" version 2.20, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Plugin for showing a popup on a specific url or an entire webpage.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,719 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 41 | 279 | 398 | 1,456 |
PHP | 2 | 118 | 95 | 541 |
Markdown | 1 | 168 | 0 | 359 |
CSS | 6 | 24 | 65 | 208 |
HTML | 2 | 11 | 1 | 94 |
JSON | 2 | 0 | 0 | 61 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.97MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/colorbox/example5/images/border.png | 0.16KB | 0.16KB | 0.00% |
images/icon.png | 3.80KB | 1.31KB | ▼ 65.40% |
inc/colorbox/example4/images/border1.png | 1.03KB | 0.82KB | ▼ 20.34% |
screenshot-1.png | 304.88KB | 41.45KB | ▼ 86.40% |
images/colorbox_example2.png | 33.71KB | 1.53KB | ▼ 95.47% |