74% integria-ims-wp

Code Review | Integria IMS integration for Wordpress

WordPress plugin Integria IMS integration for Wordpress scored74%from 54 tests.

About plugin

  • Plugin page: integria-ims-wp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Feb 10, 2020
  • Number of updates: 18
  • Update frequency: every 61.3 days
  • Top authors: articast (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /612 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.23ms] Passed 4 tests

A check of server-side resources used by Integria IMS integration for Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2439.52 ▲1.02
Dashboard /wp-admin3.54 ▲0.2045.41 ▼17.50
Posts /wp-admin/edit.php3.65 ▲0.3046.08 ▲3.72
Add New Post /wp-admin/post-new.php6.14 ▲0.2693.70 ▲1.66
Media Library /wp-admin/upload.php3.46 ▲0.2436.26 ▲1.92
Tickets /wp-admin/admin.php?page=iims_wp_admin_menu_tickets3.4233.58
Leads /wp-admin/admin.php?page=iims_wp_admin_menu_leads3.4232.51
Setup /wp-admin/admin.php?page=iims_wp_admin_menu3.4329.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 2 new tables, 8 new options
New tables
wp_iims-wp::form_data_tickets
wp_iims-wp::form_data
New WordPress options
can_compress_scripts
iims-wp::installed
widget_recent-comments
db_upgraded
iimswp-options-setup
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Integria IMS integration for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲24714.19 ▼0.406.68 ▲4.8442.87 ▼2.57
Dashboard /wp-admin2,258 ▲705.15 ▲0.28109.96 ▲4.2268.22 ▲31.11
Posts /wp-admin/edit.php2,149 ▲602.29 ▲0.3237.34 ▼2.4835.47 ▼1.62
Add New Post /wp-admin/post-new.php1,566 ▲2418.33 ▼0.20712.91 ▲78.1855.29 ▼2.51
Media Library /wp-admin/upload.php1,431 ▲464.47 ▲0.2398.77 ▼4.8471.63 ▲26.21
Tickets /wp-admin/admin.php?page=iims_wp_admin_menu_tickets9582.0427.6731.38
Leads /wp-admin/admin.php?page=iims_wp_admin_menu_leads9492.0527.8829.77
Setup /wp-admin/admin.php?page=iims_wp_admin_menu9762.1526.1233.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_iims-wp::form_data_tickets
    • wp_iims-wp::form_data
  • Zombie WordPress options detected upon uninstall: 8 options
    • iims-wp::installed
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • iimswp-options-setup

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/integria-ims-wp/integriaims-wp.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: customer support, integration, support, leads, ticketing...

integria-ims-wp/integriaims-wp.php 85% from 13 tests

"Integria IMS integration for Wordpress" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integria-ims-wp.php" instead of "integriaims-wp.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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,468 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54862021,802
JavaScript120638596
Markdown114070

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity46.00
▷ Minimum class complexity2.00
▷ Maximum class complexity117.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods2562.50%
▷ Public methods2870.00%
▷ Protected methods00.00%
▷ Private methods1230.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.58KB0.32KB▼ 44.39%