78% sac-digital-popup

Code Review | SAC DIGITAL POPUP

WordPress plugin SAC DIGITAL POPUP scored78%from 54 tests.

About plugin

  • Plugin page: sac-digital-popup
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 25, 2018
  • Latest release: Dec 2, 2021
  • Number of updates: 11
  • Update frequency: every 114.6 days
  • Top authors: sacdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /866 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
This plugin's installer ran successfully

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

An overview of server-side resources used by SAC DIGITAL POPUP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0637.62 ▼4.89
Dashboard /wp-admin3.35 ▲0.0545.46 ▲0.71
Posts /wp-admin/edit.php3.47 ▲0.1152.12 ▲5.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0599.35 ▼4.49
Media Library /wp-admin/upload.php3.28 ▲0.0534.52 ▼3.47
SAC DIGITAL Popup /wp-admin/options-general.php?page=sac-digital-popup3.2432.62

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SAC DIGITAL POPUP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.341.73 ▼0.0038.32 ▼11.95
Dashboard /wp-admin2,213 ▲225.85 ▲0.98106.99 ▲2.5442.36 ▲3.84
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0240.11 ▲2.9136.54 ▲2.39
Add New Post /wp-admin/post-new.php1,545 ▲1218.37 ▼4.84582.91 ▼113.5656.99 ▲4.93
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0394.44 ▼11.8841.21 ▼4.55
SAC DIGITAL Popup /wp-admin/options-general.php?page=sac-digital-popup8622.0625.0426.75

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • sac-digital-popup-token
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sac-digital-popup/public/partials/sac-digital-popup-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sac-digital-popup/admin/partials/sac-digital-popup-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: popup, sacdigital

sac-digital-popup/sac-digital-popup.php 92% from 13 tests

Analyzing the main PHP file in "SAC DIGITAL POPUP" version 3.0.0
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin339 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12128406263
PO File2181876

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions3
▷ Named functions3100.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
No PNG files were detected