100% sticky-popup

Code Review | Sticky Popup

WordPress plugin Sticky Popup scored 100% from 54 tests.

About plugin

  • Plugin page: sticky-popup
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 5.8.1
  • First release: Jul 19, 2014
  • Latest release: Sep 21, 2014
  • Number of updates: 10
  • Update frequency: every 6.4 days
  • Top authors: numixtech (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

8,000+ active / 49,848 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼143.09ms] Passed 4 tests

An overview of server-side resources used by Sticky Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.00 ▲14.03
Dashboard /wp-admin3.07 ▲0.0140.41 ▼7.93
Posts /wp-admin/edit.php3.12 ▲0.0141.84 ▼0.31
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.56 ▼559.72
Media Library /wp-admin/upload.php3.01 ▲0.0034.73 ▼4.38
Sticky Popup /wp-admin/options-general.php?page=sticky_popup3.0537.85

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sticky Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲12415.93 ▲0.309.87 ▲0.8250.14 ▲3.22
Dashboard /wp-admin2,972 ▲385.94 ▼0.16131.50 ▼9.00111.75 ▼2.92
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0063.56 ▲0.3892.30 ▲7.10
Add New Post /wp-admin/post-new.php1,686 ▲18818.71 ▼0.10388.85 ▲25.92108.01 ▼8.50
Media Library /wp-admin/upload.php1,815 ▲85.04 ▲0.00145.80 ▲2.93118.57 ▼4.51
Sticky Popup /wp-admin/options-general.php?page=sticky_popup2,7878.83200.45169.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
The official readme.txt is a good inspiration

sticky-popup/sticky-popup.php Passed 13 tests

The entry point to "Sticky Popup" version 1.2 is a PHP file that has certain tags in its header comment area
128 characters long description:
Sticky Popup is a simple and easy wordpress plugin used to add popup on CSS3 animations. Show html code and shortcodes in popup.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,053 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP293237601
CSS2206397
JavaScript316755

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity5.21
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/numix_post_slider.png8.27KB3.95KB▼ 52.26%