79% pretty-simple-popup-builder

Code Review | Pretty Simple Popup Builder

WordPress plugin Pretty Simple Popup Builder scored79%from 54 tests.

About plugin

  • Plugin page: pretty-simple-pop...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2022
  • Latest release: Jul 5, 2023
  • Number of updates: 16
  • Update frequency: every 35.8 days
  • Top authors: 5starplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,139 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.05MB] [CPU: ▲25.01ms] 75% from 4 tests

An overview of server-side resources used by Pretty Simple Popup Builder
Please fix the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.05MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.88 ▲5.4266.80 ▲24.04
Dashboard /wp-admin8.90 ▲5.6077.05 ▲29.02
Posts /wp-admin/edit.php8.90 ▲5.5583.82 ▲39.19
Add New Post /wp-admin/post-new.php9.54 ▲3.65107.17 ▲14.70
Media Library /wp-admin/upload.php8.90 ▲5.6865.10 ▲32.28
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9063.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 196 new files
Database: no new tables, 10 new options
New WordPress options
fs_accounts
fs_debug_mode
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
_psp_always_verify
can_compress_scripts
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for Pretty Simple Popup Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲20314.71 ▲0.321.74 ▼0.3132.85 ▼11.98
Dashboard /wp-admin2,377 ▲1896.41 ▲0.62125.33 ▲10.5941.84 ▼4.14
Posts /wp-admin/edit.php2,280 ▲1913.36 ▲1.3647.34 ▲12.6935.86 ▼0.94
Add New Post /wp-admin/post-new.php1,370 ▼14916.46 ▼6.61515.40 ▼143.0629.58 ▼27.36
Media Library /wp-admin/upload.php1,419 ▲314.16 ▼0.0381.25 ▼27.5943.96 ▼2.87
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,2683.2837.4226.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/pretty-simple-popup-builder/includes/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 10 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • _psp_always_verify
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • fs_accounts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 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: popup builder, marketing, popups, popup, popup maker

pretty-simple-popup-builder/pretty-simple-popup-builder.php 85% from 13 tests

"Pretty Simple Popup Builder" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin35,797 lines of code in 145 files:
LanguageFilesBlank linesComment linesLines of code
PHP1238,17317,96334,386
CSS161070619
JavaScript569172578
Markdown1680214

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity90.08
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes24.17%
Methods1,288
▷ Static methods20015.53%
▷ Public methods89669.57%
▷ Protected methods171.32%
▷ Private methods37529.11%
Functions171
▷ Named functions17099.42%
▷ Anonymous functions10.58%
Constants148
▷ Global constants10067.57%
▷ Class constants4832.43%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/images/5StarPlugins_Logo80x80.png2.08KB1.07KB▼ 48.52%