78% interactive-offers-co-registration

Code Review | Interactive Offers Co-Registration Plugin

WordPress plugin Interactive Offers Co-Registration Plugin scored78%from 54 tests.

About plugin

  • Plugin page: interactive-offer...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 8, 2018
  • Latest release: Mar 13, 2018
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: interactiveoffers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /548 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.61ms] Passed 4 tests

A check of server-side resources used by Interactive Offers Co-Registration Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.48 ▼0.81
Dashboard /wp-admin3.31 ▲0.0148.21 ▼2.26
Posts /wp-admin/edit.php3.36 ▲0.0147.37 ▼5.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.08 ▲3.02
Media Library /wp-admin/upload.php3.23 ▲0.0134.28 ▼1.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Interactive Offers Co-Registration Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.182.02 ▲0.3443.43 ▲1.45
Dashboard /wp-admin2,199 ▲195.61 ▼0.0693.12 ▲1.3446.63 ▲1.32
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0937.24 ▲1.2131.77 ▼0.97
Add New Post /wp-admin/post-new.php1,529 ▲123.59 ▲0.44660.37 ▲7.1265.90 ▲9.51
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.06106.08 ▼1.8946.61 ▲1.81
Interactive Offers Co-Registration settings /wp-admin/cia_intof_settings.php260.420.0914.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please 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 add_shortcode() in wp-content/plugins/interactive-offers-co-registration/cia_intof_io.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/cia_intof_settings.php
    • > Network (severe)
    wp-admin/cia_intof_settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
2 plugin tags: co-registration, affiliate marketing

interactive-offers-co-registration/cia_intof_io.php 92% from 13 tests

Analyzing the main PHP file in "Interactive Offers Co-Registration Plugin" version 1.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("interactive-offers-co-registration.php" instead of "cia_intof_io.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16959

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
No PNG files were detected