83% wdes-responsive-popup

Code Review | WDES Responsive Popup

WordPress plugin WDES Responsive Popup scored83%from 54 tests.

About plugin

  • Plugin page: wdes-responsive-p...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2016
  • Latest release: Dec 28, 2019
  • Number of updates: 75
  • Update frequency: every 16.1 days
  • Top authors: master buldog (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /3,753 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▼0.60ms] Passed 4 tests

A check of server-side resources used by WDES Responsive Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2838.25 ▼3.19
Dashboard /wp-admin3.67 ▲0.3651.38 ▲3.41
Posts /wp-admin/edit.php3.72 ▲0.3655.73 ▲8.03
Add New Post /wp-admin/post-new.php6.18 ▲0.3094.41 ▼5.62
Media Library /wp-admin/upload.php3.50 ▲0.2738.23 ▲3.00
All Shortcodes /wp-admin/edit.php?post_type=wdespopup3.5740.98
Add Shortcode /wp-admin/post-new.php?post_type=wdespopup3.6250.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WDES Responsive Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲25815.16 ▲0.761.75 ▼0.1141.19 ▼2.13
Dashboard /wp-admin2,399 ▲2086.65 ▲1.78128.58 ▲24.6639.36 ▼6.31
Posts /wp-admin/edit.php2,308 ▲2193.57 ▲1.5857.29 ▲19.4234.02 ▲1.22
Add New Post /wp-admin/post-new.php6,313 ▲4,77726.26 ▲3.15897.49 ▲218.3438.28 ▼12.21
Media Library /wp-admin/upload.php1,441 ▲534.24 ▲0.0787.47 ▼5.1343.96 ▲3.34
All Shortcodes /wp-admin/edit.php?post_type=wdespopup1,2973.5150.7826.20
Add Shortcode /wp-admin/post-new.php?post_type=wdespopup3,2668.25227.1691.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wdes_popup_meta() in wp-content/plugins/wdes-responsive-popup/lib/view/title.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wdes_popup_attr_id() in wp-content/plugins/wdes-responsive-popup/lib/view/content.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

wdes-responsive-popup/wdes-popup.php 69% from 13 tests

"WDES Responsive Popup" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wdes-responsive-popup.php" instead of "wdes-popup.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 1123 characters long)
  • Domain Path: The domain path folder does not exist ("/i18n/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,439 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP14115321,650
SVG100655
JavaScript423614
CSS402520

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions71
▷ Named functions7098.59%
▷ Anonymous functions11.41%
Constants17
▷ Global constants17100.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 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/page-editor-settings.png95.86KB29.64KB▼ 69.08%