84% quick-popup-anything

Code Review | Quick Popup Anything

WordPress plugin Quick Popup Anything scored84%from 54 tests.

About plugin

  • Plugin page: quick-popup-anything
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2020
  • Latest release: Apr 26, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: isolankiparth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.99ms] Passed 4 tests

Server-side resources used by Quick Popup Anything
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.22 ▲0.66
Dashboard /wp-admin3.42 ▲0.1144.31 ▼4.12
Posts /wp-admin/edit.php3.53 ▲0.1750.41 ▲1.03
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.44 ▼5.53
Media Library /wp-admin/upload.php3.34 ▲0.1139.02 ▲3.25

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-comments
miqpa_editor_content
miqpa_popup_width
db_upgraded
theysaidso_admin_options
miqpa_button_label
widget_theysaidso_widget
miqpa_button_hover_color
miqpa_button_hover_bg
miqpa_button_color
...

Browser metrics Passed 4 tests

A check of browser resources used by Quick Popup Anything
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲33213.79 ▼0.598.90 ▲6.9243.36 ▼6.64
Dashboard /wp-admin2,264 ▲795.98 ▲0.08101.52 ▼17.1635.92 ▼6.96
Posts /wp-admin/edit.php2,152 ▲632.32 ▲0.2641.84 ▲5.1135.31 ▲1.58
Add New Post /wp-admin/post-new.php1,540 ▲723.42 ▲0.26664.78 ▼4.3036.03 ▼27.21
Media Library /wp-admin/upload.php1,443 ▲554.47 ▲0.27104.45 ▲5.8445.53 ▼0.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-popup-anything/includes/front-popup.php:184
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/quick-popup-anything/includes/set-options.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-popup-anything/includes/admin-settings.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-popup-anything/includes/load-scripts.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-popup-anything/includes/admin-menu.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: marketing, advertising, popup maker, wp popup, wordpress popup...

quick-popup-anything/quick-popup-anything.php 92% from 13 tests

The principal PHP file in "Quick Popup Anything" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected2,279 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43851731,386
PHP763169447
CSS34319446

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected