84% cool-fade-popup

Code Review | Cool fade popup

WordPress plugin Cool fade popup scored84%from 54 tests.

About plugin

  • Plugin page: cool-fade-popup
  • Plugin version: 10.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2011
  • Latest release: Dec 1, 2022
  • Number of updates: 84
  • Update frequency: every 51.7 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /40,133 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.54ms] Passed 4 tests

This is a short check of server-side resources used by Cool fade popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.52 ▲0.29
Dashboard /wp-admin3.32 ▲0.0255.61 ▲5.97
Posts /wp-admin/edit.php3.37 ▲0.0250.02 ▼2.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.64 ▲0.33
Media Library /wp-admin/upload.php3.24 ▲0.0238.89 ▼0.10
Cool fade popup /wp-admin/options-general.php?page=cool-fade-popup3.2935.30

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 16 new options
New tables
wp_popupfadpopup
New WordPress options
PopUpFad_On_Homepage
theysaidso_admin_options
PopUpFad_On_Archives
PopUpFad_Session
widget_recent-posts
PopUpFad_nopopup
PopUpFad_Random
widget_theysaidso_widget
PopUpFad_On_Pages
PopUpFad_On_Posts
...

Browser metrics Passed 4 tests

Checking browser requirements for Cool fade popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.72 ▲0.542.11 ▼0.0244.36 ▲1.73
Dashboard /wp-admin2,202 ▲285.59 ▼0.0291.58 ▼6.5237.97 ▼1.18
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0739.04 ▼1.6036.33 ▲1.19
Add New Post /wp-admin/post-new.php1,528 ▲221.60 ▼1.61645.53 ▼50.6862.63 ▲10.32
Media Library /wp-admin/upload.php1,401 ▲104.20 ▲0.02103.45 ▼0.3345.27 ▼2.53
Cool fade popup /wp-admin/options-general.php?page=cool-fade-popup9472.1422.4026.39

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
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
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cool-fade-popup/pages/content-management-edit.php
    • > /wp-content/plugins/cool-fade-popup/pages/content-management-show.php
    • > /wp-content/plugins/cool-fade-popup/cool-fade-popup.php
    • > /wp-content/plugins/cool-fade-popup/pages/content-management-add.php
    • > /wp-content/plugins/cool-fade-popup/pages/widget-setting.php

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: fade in, unblockable, offers, advertisment, popups...

cool-fade-popup/cool-fade-popup.php 92% from 13 tests

The primary PHP file in "Cool fade popup" version 10.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 208 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 plugin1,819 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP69940946
PO File5326480759
JavaScript2132078
CSS15336

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/gopiplus.com-popup.png1.41KB1.31KB▼ 7.34%