84% drop-a-deal-fomo-pop-ups

Code Review | Drop-a-Deal Fomo Pop-ups

WordPress plugin Drop-a-Deal Fomo Pop-ups scored84%from 54 tests.

About plugin

  • Plugin page: drop-a-deal-fomo-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Oct 2, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: dropadeal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.98ms] Passed 4 tests

This is a short check of server-side resources used by Drop-a-Deal Fomo Pop-ups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0450.16 ▲7.96
Dashboard /wp-admin3.35 ▲0.0547.35 ▲0.27
Posts /wp-admin/edit.php3.40 ▲0.0551.07 ▲2.35
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.51 ▲5.09
Media Library /wp-admin/upload.php3.28 ▲0.0536.40 ▲4.20

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Drop-a-Deal Fomo Pop-ups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲6913.30 ▼1.292.46 ▲0.4443.84 ▼2.76
Dashboard /wp-admin2,224 ▲335.85 ▲0.9495.87 ▼5.9966.44 ▲25.07
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0436.82 ▼5.3134.52 ▼2.14
Add New Post /wp-admin/post-new.php1,544 ▲2718.74 ▲1.17732.48 ▲119.7057.22 ▲6.25
Media Library /wp-admin/upload.php1,406 ▲214.13 ▼0.15100.47 ▼6.3646.36 ▼2.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/drop-a-deal-fomo-pop-ups/dropadeal.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: woocommerce, exit popup, pop up, popup, pop-up...

drop-a-deal-fomo-pop-ups/dropadeal.php 92% from 13 tests

The main file in "Drop-a-Deal Fomo Pop-ups" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("drop-a-deal-fomo-pop-ups.php" instead of "dropadeal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected277 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15122277

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dropadeal-icon.png1.28KB0.55KB▼ 57.43%
images/logo-small.png3.22KB1.40KB▼ 56.71%