84% full-screen-popup

Code Review | Full Screen Popup

WordPress plugin Full Screen Popup scored84%from 54 tests.

About plugin

  • Plugin page: full-screen-popup
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 13, 2012
  • Latest release: Jun 19, 2018
  • Number of updates: 19
  • Update frequency: every 111.0 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /31,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.38ms] Passed 4 tests

A check of server-side resources used by Full Screen Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.61 ▲1.19
Dashboard /wp-admin3.40 ▲0.0545.70 ▼14.51
Posts /wp-admin/edit.php3.43 ▲0.0842.98 ▼5.67
Add New Post /wp-admin/post-new.php6.11 ▲0.2273.96 ▼17.87
Media Library /wp-admin/upload.php3.33 ▲0.1132.14 ▼3.45
Basic Settings /wp-admin/admin.php?page=full-screen-popup-basic-settings3.3130.65
Full Screen Popup /wp-admin/admin.php?page=full-screen-popup-settings3.4139.27
About /wp-admin/admin.php?page=full-screen-popup-about3.3632.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 31 new options
New WordPress options
xyz_fsp_delay
theysaidso_admin_options
widget_recent-comments
xyz_fsp_mode
xyz_fsp_page_count
xyz_fsp_tinymce
xyz_fsp_enable
xyz_fsp_repeat_interval_timing
xyz_credit_link
xyz_fsp_iframe
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Full Screen Popup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,998 ▲26313.86 ▼0.448.86 ▲7.1545.96 ▲3.17
Dashboard /wp-admin2,243 ▲555.08 ▲0.18101.49 ▼6.3974.60 ▲35.02
Posts /wp-admin/edit.php2,120 ▲312.04 ▲0.0234.16 ▼2.3731.33 ▼1.79
Add New Post /wp-admin/post-new.php1,562 ▲4823.10 ▲5.53726.52 ▲88.5170.01 ▲18.38
Media Library /wp-admin/upload.php1,425 ▲344.24 ▼0.0199.66 ▲4.7174.92 ▲33.61
Basic Settings /wp-admin/admin.php?page=full-screen-popup-basic-settings1,2521.8426.2958.28
Full Screen Popup /wp-admin/admin.php?page=full-screen-popup-settings2,5256.99141.74116.03
About /wp-admin/admin.php?page=full-screen-popup-about1,7531.7425.2248.75

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
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • xyz_credit_link
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • xyz_fsp_title
    • xyz_fsp_title_color
    • xyz_fsp_free_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/full-screen-popup/admin/footer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: full page popup, full window popup, custom message popup, full screen popup, popup...

full-screen-popup/full-screen-popup.php 92% from 13 tests

The entry point to "Full Screen Popup" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 402 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
There were no executable files found in this plugin2,021 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16276521,537
CSS11143446
JavaScript27138

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
18 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cross.png0.75KB0.65KB▼ 12.83%
images/full-screen-popup.png0.70KB0.97KB0.00%
images/new_star.png4.65KB1.93KB▼ 58.47%
images/donate.png3.45KB0.72KB▼ 78.97%
images/facebook.png0.65KB0.65KB▼ 0.75%