83% ultimate-popup-free

Code Review | Ultimate Popup Free

WordPress plugin Ultimate Popup Free scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-popup-free
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: Oct 3, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: perfectpointmarketing (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /15,991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.31ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Popup Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.36 ▼4.87
Dashboard /wp-admin3.38 ▲0.0849.89 ▼0.56
Posts /wp-admin/edit.php3.43 ▲0.0752.30 ▲1.33
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.78 ▼10.73
Media Library /wp-admin/upload.php3.30 ▲0.0736.16 ▼5.09
Popups /wp-admin/edit.php?post_type=ultimate-popup-free3.3537.79
Add New /wp-admin/post-new.php?post_type=ultimate-popup-free3.8550.17

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 311 new files
Database: no new tables, 8 new options
New WordPress options
ppm_side_popup_free_help
ppm_side_popup_free_global
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Popup Free
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19813.74 ▼0.705.52 ▲3.8038.85 ▼4.00
Dashboard /wp-admin2,260 ▲724.89 ▼1.00114.22 ▲4.0842.86 ▲1.68
Posts /wp-admin/edit.php2,143 ▲542.09 ▲0.0940.80 ▼0.0535.94 ▼1.13
Add New Post /wp-admin/post-new.php1,562 ▲2923.25 ▲0.01662.58 ▲48.4157.87 ▲6.30
Media Library /wp-admin/upload.php1,436 ▲454.32 ▲0.1496.11 ▼4.1144.16 ▼6.06
Popups /wp-admin/edit.php?post_type=ultimate-popup-free1,1162.0339.1730.46
Add New /wp-admin/post-new.php?post_type=ultimate-popup-free2,2764.2392.8765.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • ppm_side_popup_free_global
    • ppm_side_popup_free_help
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-popup-free/inc/cmb2/init.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-popup-free/inc/settings-api/ppm-popup-options.php:84
    • > PHP Fatal error
      Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/ultimate-popup-free/inc/settings-api/settings-api.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-popup-free/inc/cmb2/init.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-free/inc/popup-content/ppm-popup-content-global.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ultimate-popup-free/inc/cmb2/bootstrap.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-popup-free/ultimate-popup-free.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ultimate-popup-free === )
  • Screenshots: Add images for these screenshots: #1 (PopUp in website), #2 (Each popup settings), #3 (Each popup settings), #4 (Global popup settings)
You can look at the official readme.txt

ultimate-popup-free/ultimate-popup-free.php Passed 13 tests

The main PHP file in "Ultimate Popup Free" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
This plugin will enable an awesome side popup in your wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected37,547 lines of code in 151 files:
LanguageFilesBlank linesComment linesLines of code
PO File11912,61416,20928,917
CSS51,0131,0234,009
PHP201,1232,1233,774
JavaScript7205156847

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity37.53
▷ Minimum class complexity3.00
▷ Maximum class complexity113.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods214
▷ Static methods219.81%
▷ Public methods20495.33%
▷ Protected methods73.27%
▷ Private methods31.40%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.70MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
inc/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
img/theme_1.png10.88KB4.72KB▼ 56.60%
inc/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%