83% scarcity-jeet

Code Review | WP Scarcity Jeet - Powerful scarcity and urgency timer for your landing pages

WordPress plugin WP Scarcity Jeet - Powerful scarcity and urgency timer for your landing pages scored83%from 54 tests.

About plugin

  • Plugin page: scarcity-jeet
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2020
  • Latest release: Feb 17, 2020
  • Number of updates: 8
  • Update frequency: every 2.0 days
  • Top authors: teknikforce (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /633 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.11ms] Passed 4 tests

Analyzing server-side resources used by WP Scarcity Jeet - Powerful scarcity and urgency timer for your landing pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0428.70 ▼15.10
Dashboard /wp-admin3.44 ▲0.1348.01 ▼8.57
Posts /wp-admin/edit.php3.55 ▲0.1949.26 ▼4.04
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.18 ▼8.72
Media Library /wp-admin/upload.php3.36 ▲0.1338.85 ▲5.48
WP Scarcity Jeet /wp-admin/options-general.php?page=wpscarcityjeet_options3.3434.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
wpsj_settings
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WP Scarcity Jeet - Powerful scarcity and urgency timer for your landing pages: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.68 ▼1.079.16 ▲7.2445.00 ▲1.74
Dashboard /wp-admin2,213 ▲285.91 ▲0.01100.69 ▼4.3838.34 ▼5.11
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0241.05 ▲7.2139.90 ▲5.22
Add New Post /wp-admin/post-new.php1,539 ▲623.27 ▲0.19678.56 ▲0.3452.51 ▼13.34
Media Library /wp-admin/upload.php1,395 ▲44.23 ▼0.0097.89 ▼1.9843.99 ▲0.81
WP Scarcity Jeet /wp-admin/options-general.php?page=wpscarcityjeet_options8582.0130.2167.67

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpsj_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/scarcity-jeet/wpscarcityjeet_top.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Wpscarcityjeet\\license\\add_action() in wp-content/plugins/scarcity-jeet/wpscarcityjeet-sequence/plugin.php:22
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/scarcity-jeet/wpscarcityjeet_bot.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/scarcity-jeet/wpscarcityjeet-sequence/user_not_verified_bonus.php:19
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/scarcity-jeet/wpscarcityjeet_top.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/scarcity-jeet/wpscarcityjeet_top.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/scarcity-jeet/wpscarcityjeet_bot.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/scarcity-jeet/js/init.js.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scarcity-jeet/js/initialize.js.php:2
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/scarcity-jeet/wpscarcityjeet_bot.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

scarcity-jeet/wpscarcityjeet.php 92% from 13 tests

The primary PHP file in "WP Scarcity Jeet - Powerful scarcity and urgency timer for your landing pages" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("scarcity-jeet.php" instead of "wpscarcityjeet.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 detected28,146 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS132,22610816,865
JavaScript112,2071,8389,863
PHP11114391,417
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.00
▷ Minimum class complexity13.00
▷ Maximum class complexity23.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/tekniklogo.png2.22KB0.00KB▼ 100.00%
images/product_box.png21.56KB7.55KB▼ 64.96%
(invalid) tekniklogo.png2.22KB0.00KB▼ 100.00%
(invalid) wpscarcityjeet-sequence/asset/img/blue-icon-security.png13.74KB0.00KB▼ 100.00%