83% tizra-connect

Code Review | Tizra Connect

WordPress plugin Tizra Connect scored83%from 54 tests.

About plugin

  • Plugin page: tizra-connect
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.5
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: May 30, 2017
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: abedane (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.83ms] Passed 4 tests

An overview of server-side resources used by Tizra Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.54 ▲1.12
Dashboard /wp-admin3.55 ▲0.2148.85 ▼20.37
Posts /wp-admin/edit.php3.61 ▲0.2550.39 ▼0.33
Add New Post /wp-admin/post-new.php6.10 ▲0.2295.81 ▼11.75
Media Library /wp-admin/upload.php3.41 ▲0.1943.28 ▲6.39

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Tizra Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.24 ▼1.141.64 ▼0.4341.68 ▼2.95
Dashboard /wp-admin2,225 ▲375.85 ▲0.07110.13 ▼8.0843.77 ▼3.68
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0240.24 ▼0.5734.59 ▼2.24
Add New Post /wp-admin/post-new.php1,567 ▲4823.09 ▼0.20661.84 ▼17.6059.91 ▼1.09
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.06102.39 ▼6.8544.99 ▼2.61

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/tizra-connect/includes/admin/views/js-shortcode-insert-content.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/tizra-connect/includes/admin/views/html-shortcode-insert-content.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/tizra-connect/includes/admin/views/js-shortcode-actions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/tizra-connect/includes/admin/views/html-shortcode-actions.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Tizra Connect Options), #2 (Tizra Connect Shortcode Insert), #3 (Tizra Connect Front-End Display)
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

tizra-connect/tizra-connect.php 92% from 13 tests

The main PHP file in "Tizra Connect" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

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
There were no executable files found in this plugin6,337 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript501,2455254,690
PHP163841,002969
CSS412028678

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.75
▷ Minimum class complexity2.00
▷ Maximum class complexity44.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes8100.00%
Methods72
▷ Static methods1825.00%
▷ Public methods6995.83%
▷ Protected methods00.00%
▷ Private methods34.17%
Functions8
▷ Named functions8100.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 images were found in this plugin