10% easy-animated-popup

Code Review | Easy Animated Popup

WordPress plugin Easy Animated Popup scored10%from 54 tests.

About plugin

  • Plugin page: easy-animated-popup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Dec 2, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: saigontech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /482 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'EAPSGT_Plugin' does not have a method 'active'

Server metrics [RAM: ▲0.32MB] [CPU: ▼1.26ms] Passed 4 tests

An overview of server-side resources used by Easy Animated Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3247.13 ▲5.19
Dashboard /wp-admin3.62 ▲0.3253.06 ▲4.77
Posts /wp-admin/edit.php3.74 ▲0.3850.91 ▲0.31
Add New Post /wp-admin/post-new.php6.22 ▲0.3488.57 ▼12.11
Media Library /wp-admin/upload.php3.54 ▲0.3239.01 ▲2.00
All PopUps /wp-admin/edit.php?post_type=eapsgt3.5937.79
Add New PopUp /wp-admin/post-new.php?post_type=eapsgt3.6348.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Animated Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.40 ▼0.791.91 ▲0.2442.88 ▲3.59
Dashboard /wp-admin2,248 ▲605.19 ▲0.27121.19 ▲8.3243.72 ▼0.47
Posts /wp-admin/edit.php2,142 ▲502.35 ▲0.3237.51 ▲1.3631.91 ▼4.79
Add New Post /wp-admin/post-new.php1,561 ▲3223.24 ▲4.88687.33 ▲23.8036.24 ▼23.50
Media Library /wp-admin/upload.php1,439 ▲544.43 ▲0.24106.16 ▲1.6139.79 ▼9.18
All PopUps /wp-admin/edit.php?post_type=eapsgt1,1142.3036.9530.89
Add New PopUp /wp-admin/post-new.php?post_type=eapsgt3,0573.3986.4397.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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 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
  • 2× 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-animated-popup/includes/popup/popup_setup.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-animated-popup/easy-animated-popup-admin.php:12

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #0, #0, #0, #0, #0 in easy-animated-popup/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #1 (screenshot1.png You can pick a template of your choice.), #2 (screenshot2.png You can customize many elements in the template.), #3 (screenshot3.png Pick a good animation you like.), #4 (screenshot4.png Customize how and where the popup will be appear.), #5 (screenshot5.png Create and edit as much as the popup you need.)
  • Requires at least: Version format is invalid
The official readme.txt might help

easy-animated-popup/easy-animated-popup.php Passed 13 tests

"Easy Animated Popup" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Setup and create animated popup in seconds, increase lead and conversions for your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,548 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP321661241,809
CSS7385541,578
JSON1000141
SVG10012
JavaScript8028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods646.15%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
43 PNG files occupy 4.65MB with 2.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bg_top_popup02.png604.25KB381.42KB▼ 36.88%
assets/img/img_top_after_popup02.png8.11KB3.69KB▼ 54.52%
assets/img/close_popup09.png0.23KB0.21KB▼ 9.09%
assets/img/logo_09.png17.68KB8.75KB▼ 50.52%
screenshot2.png175.08KB56.98KB▼ 67.45%