84% popupbuilder-app

Code Review | PopUpBuilder.App

WordPress plugin PopUpBuilder.App scored84%from 54 tests.

About plugin

  • Plugin page: popupbuilder-app
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2022
  • Latest release: Jan 24, 2023
  • Number of updates: 5
  • Update frequency: every 36.4 days
  • Top authors: PascalBajorat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.29ms] Passed 4 tests

This is a short check of server-side resources used by PopUpBuilder.App
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.53 ▼6.92
Dashboard /wp-admin3.39 ▲0.0951.99 ▲1.77
Posts /wp-admin/edit.php3.50 ▲0.1554.00 ▲3.69
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.78 ▼14.78
Media Library /wp-admin/upload.php3.31 ▲0.0939.62 ▲2.78
PopUpBuilder.App /wp-admin/options-general.php?page=popupbuilderapp3.3233.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

PopUpBuilder.App: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.121.65 ▼0.2740.65 ▼1.71
Dashboard /wp-admin2,213 ▲254.86 ▼0.00108.33 ▼3.7836.08 ▼3.53
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0138.87 ▼2.3238.37 ▲3.98
Add New Post /wp-admin/post-new.php1,536 ▼423.24 ▲5.08635.50 ▲15.5066.23 ▲7.83
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0595.91 ▼9.7641.67 ▼0.61
PopUpBuilder.App /wp-admin/options-general.php?page=popupbuilderapp8531.8532.1944.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'BM\\PopUpBuilder\\Settings' not found in wp-content/plugins/popupbuilder-app/templates/admin-overview.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/popupbuilder-app/templates/admin-setup.php:20
    • > PHP Notice
      Undefined variable: api_key in wp-content/plugins/popupbuilder-app/templates/admin-setup.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/popupbuilder-app/templates/admin-setup-completed.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: social-proof, marketing, optin, popups, popup...

popupbuilder-app/popupbuilder-app.php 85% from 13 tests

The primary PHP file in "PopUpBuilder.App" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,574 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG9001,934
CSS213201,186
PHP1015667660
Sass1701464
PO File15659186
JavaScript2230144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.43
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods411.76%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/info.png2.18KB2.04KB▼ 6.67%