10% jq-daily-pop-up

Code Review | jQuery Daily Pop Up

WordPress plugin jQuery Daily Pop Up scored10%from 54 tests.

About plugin

  • Plugin page: jq-daily-pop-up
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Oct 14, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: zankukai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,252 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/jq-daily-pop-up/jq_dailypopup.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; jQDailyPopUp has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.84ms] Passed 4 tests

An overview of server-side resources used by jQuery Daily Pop Up
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.78 ▼35.03
Dashboard /wp-admin2.11 ▼1.196.13 ▼44.83
Posts /wp-admin/edit.php2.11 ▼1.255.77 ▼37.79
Add New Post /wp-admin/post-new.php2.11 ▼3.786.74 ▼97.70
Media Library /wp-admin/upload.php2.11 ▼1.125.19 ▼29.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_jqdailypopup
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for jQuery Daily Pop Up
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.211.58 ▼0.1841.13 ▼1.84
Dashboard /wp-admin2,203 ▲155.81 ▲0.9194.13 ▼24.0038.09 ▼8.73
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.03 ▲1.0835.17 ▼2.50
Add New Post /wp-admin/post-new.php1,544 ▲3018.39 ▲0.70640.90 ▲1.2359.29 ▲6.95
Media Library /wp-admin/upload.php1,382 ▼04.24 ▲0.0496.69 ▲0.6440.85 ▼2.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/jq-daily-pop-up/jq_dailypopup.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; jQDailyPopUp has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_jqdailypopup
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/jq-daily-pop-up/jq_dailypopup.php:11

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: jquery, framework, popup, fullscreen

jq-daily-pop-up/jq_dailypopup.php 85% from 13 tests

The principal PHP file in "jQuery Daily Pop Up" v. 1.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jq-daily-pop-up.php" instead of "jq_dailypopup.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 348 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin589 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS810435
PHP12219153
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin