84% wp-easy-popup

Code Review | WP Easy Popup

WordPress plugin WP Easy Popup scored84%from 54 tests.

About plugin

  • Plugin page: wp-easy-popup
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2014
  • Latest release: Jun 18, 2019
  • Number of updates: 19
  • Update frequency: every 86.6 days
  • Top authors: vivacityinfotech.jaipur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.67MB] [CPU: ▼19.81ms] Passed 4 tests

A check of server-side resources used by WP Easy Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.57 ▼2.77
Dashboard /wp-admin3.33 ▲0.0355.58 ▲4.79
Posts /wp-admin/edit.php3.38 ▲0.0352.07 ▲1.43
Add New Post /wp-admin/post-new.php3.11 ▼2.7738.63 ▼73.69
Media Library /wp-admin/upload.php3.25 ▲0.0236.68 ▼4.20
Add New /wp-admin/post-new.php?post_type=spopup3.1137.20
All SPopup /wp-admin/edit.php?post_type=spopup3.3038.88

Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Easy Popup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲20213.83 ▼0.559.08 ▲7.4642.23 ▼0.87
Dashboard /wp-admin2,249 ▲695.86 ▲0.2696.80 ▼0.2240.54 ▼8.18
Posts /wp-admin/edit.php2,159 ▲562.39 ▲0.3643.03 ▲0.3534.62 ▼3.37
Add New Post /wp-admin/post-new.php1,574 ▲4823.20 ▲0.21669.84 ▼50.4837.08 ▼16.08
Media Library /wp-admin/upload.php1,460 ▲604.51 ▲0.32100.02 ▼8.8647.76 ▲3.63
Add New /wp-admin/post-new.php?post_type=spopup3,3088.21219.6292.63
All SPopup /wp-admin/edit.php?post_type=spopup1,1322.2735.0729.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=spopup
    • > Notice in wp-content/plugins/wp-easy-popup/wp-easy-popup.php+715
    Undefined index: custom_meta_box_nonce

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

wp-easy-popup/wp-easy-popup.php 92% from 13 tests

"WP Easy Popup" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,128 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS394841,491
JavaScript329039881
PHP14332710
PO File128046

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
33 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
fancybox/fancy_shadow_ne.png0.34KB0.48KB0.00%
fancybox/fancy_title_left.png0.49KB0.82KB0.00%
fancybox/fancy_shadow_sw.png0.33KB0.48KB0.00%