84% interactive-promo

Code Review | Interactive Promo

WordPress plugin Interactive Promo scored84%from 54 tests.

About plugin

  • Plugin page: interactive-promo
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2020
  • Latest release: Apr 3, 2023
  • Number of updates: 12
  • Update frequency: every 80.8 days
  • Top authors: wpdevteam (83.33%)alam789 (25%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,676 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.03MB] [CPU: ▼4.01ms] Passed 4 tests

A check of server-side resources used by Interactive Promo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.35 ▲2.69
Dashboard /wp-admin3.33 ▼0.0247.51 ▼10.04
Posts /wp-admin/edit.php3.44 ▲0.0944.19 ▼4.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.56 ▼1.94
Media Library /wp-admin/upload.php3.25 ▲0.0234.83 ▲0.94

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

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

Browser metrics Passed 4 tests

Interactive Promo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.121.74 ▼0.0146.98 ▲4.55
Dashboard /wp-admin2,195 ▲185.56 ▼0.0496.03 ▲8.5541.25 ▲2.64
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0039.03 ▼0.1941.78 ▲4.52
Add New Post /wp-admin/post-new.php1,664 ▲13826.72 ▲3.79648.83 ▼7.2536.27 ▼13.92
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.04128.13 ▲32.0753.82 ▲12.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-promo/includes/admin-enqueue.php:6

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 Passed 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: animated, block, promo, gutenberg, image block...

interactive-promo/interactive-promo.php Passed 13 tests

Analyzing the main PHP file in "Interactive Promo" version 1.2.4
54 characters long description:
Engage your potential audience with an exciting promo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,405 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS3188341,587
PHP10109175714
JavaScript615892
JSON20012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity27.83
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods36
▷ Static methods1233.33%
▷ Public methods3288.89%
▷ Protected methods00.00%
▷ Private methods411.11%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin