77% easy-popup-maker

Code Review | Easy Popup Maker

WordPress plugin Easy Popup Maker scored 77% from 54 tests.

About plugin

  • Plugin page: easy-popup-maker
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.0
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: May 25, 2022
  • Number of updates: 7
  • Update frequency: every 29.0 days
  • Top authors: osamaesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Easy Popup Maker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3937.71 ▼4.02
Dashboard /wp-admin3.69 ▲0.3849.52 ▼1.98
Posts /wp-admin/edit.php3.80 ▲0.4447.26 ▼0.12
Add New Post /wp-admin/post-new.php6.33 ▲0.4488.43 ▼10.42
Media Library /wp-admin/upload.php3.61 ▲0.3838.63 ▲2.87
update Popup Maker /wp-admin/admin.php?page=CPWPWM_DATA_update3.5632.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Easy Popup Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲16813.88 ▼0.477.16 ▲5.5639.27 ▼9.33
Dashboard /wp-admin2,221 ▲334.85 ▼1.05101.05 ▼1.9136.61 ▼4.42
Posts /wp-admin/edit.php2,104 ▲122.00 ▼0.0236.04 ▼3.2529.75 ▼3.26
Add New Post /wp-admin/post-new.php1,541 ▲2418.06 ▲0.54594.90 ▼32.4067.71 ▼7.40
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.0597.06 ▼7.7149.89 ▲4.83
update Popup Maker /wp-admin/admin.php?page=CPWPWM_DATA_update2,9448.92199.11124.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=CPWPWM_DATA_update
    • > Notice in wp-content/plugins/easy-popup-maker/admin/crud.php+753
    Undefined index: id

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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-popup-maker/admin/post_type.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-popup-maker/view.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-popup-maker/popup.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-popup-maker/admin/crud.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Please add images for these screenshots: #2 (Youtube popup), #3 (Preview page)
You can take inspiration from this readme.txt

easy-popup-maker/popup.php 77% from 13 tests

The entry point to "Easy Popup Maker" version 1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-popup-maker.php" instead of "popup.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,787 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP7227472,075
JavaScript6121146444
CSS7217268

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 156)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity131.00
▷ Minimum class complexity65.00
▷ Maximum class complexity197.00
Average method complexity13.53
▷ Minimum method complexity1.00
▷ Maximum method complexity156.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1568.18%
▷ Protected methods00.00%
▷ Private methods731.82%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants2
▷ Global constants2100.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
14 PNG files occupy 0.42MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/position/middle.png15.81KB1.51KB▼ 90.45%
assets/img/position/right-bottom.png15.46KB1.21KB▼ 92.18%
assets/img/position/left-middle.png15.70KB1.38KB▼ 91.19%
assets/img/position/right-middle.png15.62KB1.38KB▼ 91.20%
assets/img/blank.png75.25KB20.90KB▼ 72.23%