10% integrator3

Code Review | Integrator3

WordPress plugin Integrator3 scored10%from 54 tests.

About plugin

  • Plugin page: integrator3
  • Plugin version: 3.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Apr 2, 2016
  • Number of updates: 56
  • Update frequency: every 22.1 days
  • Top authors: steven.gohigher (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /5,514 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/integrator3/integrator.php+33
    Methods with the same name as their class will not be constructors in a future version of PHP; Integrator has a deprecated constructor

Server metrics [RAM: ▼0.29MB] [CPU: ▼12.01ms] Passed 4 tests

Server-side resources used by Integrator3
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.174.69 ▼39.01
Dashboard /wp-admin3.31 ▲0.0045.42 ▼4.13
Posts /wp-admin/edit.php3.36 ▲0.0048.21 ▼0.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.44 ▼4.27
Media Library /wp-admin/upload.php3.23 ▲0.0035.74 ▲3.84
Add New /wp-admin/post-new.php?post_type=intlink3.0425.14
Integrator /wp-admin/options-general.php?page=int_menu3.0125.73
Integrator Links /wp-admin/edit.php?post_type=intlink3.0426.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
wp_wpemp_fopen
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Integrator3
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.24 ▼1.325.77 ▲3.9042.47 ▼0.80
Dashboard /wp-admin2,206 ▲215.92 ▲0.08106.59 ▼8.0641.81 ▼2.23
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0438.12 ▲1.0435.97 ▲1.86
Add New Post /wp-admin/post-new.php1,542 ▲618.13 ▼5.02627.64 ▲31.0553.62 ▼7.14
Media Library /wp-admin/upload.php1,382 ▼64.24 ▼0.0497.50 ▲0.1240.77 ▼4.83
Add New /wp-admin/post-new.php?post_type=intlink280.440.064.02
Integrator /wp-admin/options-general.php?page=int_menu280.440.064.00
Integrator Links /wp-admin/edit.php?post_type=intlink280.440.073.54

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • wp_wpemp_fopen
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% 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 | 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/integrator3/integrator/box.php
    • > /wp-content/plugins/integrator3/integrator/logout.php
    • > /wp-content/plugins/integrator3/logout.php
  • 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: pageoptns in wp-content/plugins/integrator3/integrator/box.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/integrator3/integrator.php:1279
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/integrator3/integrator/options.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'IntHelper' not found in wp-content/plugins/integrator3/integrator/login.php:53
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/integrator3/integrator/options.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/integrator3/integrator/box.php on line 72
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/integrator3/integrator/box.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/integrator3/integrator/intlinkerror.php:3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/integrator3/integrator/box.php on line 72
    • > PHP Fatal error
      Uncaught Error: Class 'IntHelper' not found in wp-content/plugins/integrator3/integrator/login.php:53

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=intlink
    • > Network (severe)
    wp-admin/post-new.php?post_type=intlink - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/options-general.php?page=int_menu
    • > Network (severe)
    wp-admin/options-general.php?page=int_menu - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=intlink
    • > Network (severe)
    wp-admin/edit.php?post_type=intlink - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in integrator3/assets to your readme.txt
You can look at the official readme.txt

integrator3/integrator.php 92% from 13 tests

The entry point to "Integrator3" version 3.1.10 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integrator3.php" instead of "integrator.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
No dangerous file extensions were detected1,782 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP146421,4711,782
JavaScript1330

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity46.67
▷ Minimum class complexity12.00
▷ Maximum class complexity81.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods114
▷ Static methods10.88%
▷ Public methods10592.11%
▷ Protected methods00.00%
▷ Private methods97.89%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
PNG images were not found in this plugin