83% tigris-flexplatform

Code Review | Tigris Flexplatform

WordPress plugin Tigris Flexplatform scored83%from 54 tests.

About plugin

  • Plugin page: tigris-flexplatform
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2018
  • Latest release: Apr 22, 2019
  • Number of updates: 8
  • Update frequency: every 18.9 days
  • Top authors: tigrisflexplatform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 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.46MB] [CPU: ▼3.06ms] Passed 4 tests

Server-side resources used by Tigris Flexplatform
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4230.98 ▼10.31
Dashboard /wp-admin3.77 ▲0.4650.59 ▼6.50
Posts /wp-admin/edit.php3.88 ▲0.5252.47 ▲2.45
Add New Post /wp-admin/post-new.php6.37 ▲0.48101.01 ▲8.78
Media Library /wp-admin/upload.php3.69 ▲0.4640.36 ▲2.12
All Vacancies /wp-admin/edit.php?post_type=vacatures3.7341.59
Add New /wp-admin/post-new.php?post_type=branch3.8258.68
All Branches /wp-admin/edit.php?post_type=branch3.7341.78
Tags /wp-admin/edit-tags.php?taxonomy=tigristag&post_type=vacatures3.6840.30
Vacancies Categories /wp-admin/edit-tags.php?taxonomy=tigrisvacancies&post_type=vacatures3.6839.08
Add New /wp-admin/post-new.php?post_type=vacatures3.8259.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Tigris Flexplatform
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲22813.52 ▼0.639.05 ▲7.2139.93 ▼4.30
Dashboard /wp-admin2,257 ▲775.53 ▼0.1688.05 ▼12.6777.58 ▲34.44
Posts /wp-admin/edit.php2,180 ▲802.02 ▲0.0536.65 ▼3.4540.03 ▲2.85
Add New Post /wp-admin/post-new.php1,601 ▲7518.29 ▼4.94693.02 ▲11.4665.11 ▲12.10
Media Library /wp-admin/upload.php1,477 ▲804.27 ▼0.0296.69 ▼17.0068.41 ▲20.56
All Vacancies /wp-admin/edit.php?post_type=vacatures1,2581.9335.5233.38
Add New /wp-admin/post-new.php?post_type=branch2,4367.76177.80138.72
All Branches /wp-admin/edit.php?post_type=branch1,1461.9334.5136.28
Tags /wp-admin/edit-tags.php?taxonomy=tigristag&post_type=vacatures1,3262.1728.0430.96
Vacancies Categories /wp-admin/edit-tags.php?taxonomy=tigrisvacancies&post_type=vacatures1,3542.1426.1731.86
Add New /wp-admin/post-new.php?post_type=vacatures2,6347.74174.40118.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tigris-flexplatform/templates/category-tigrisvacancies.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/tigris-flexplatform/templates/single-tigrisbranch.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/tigris-flexplatform/templates/form-tigrisvacancy.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tigris-flexplatform/templates/single-tigrisvacancy.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/tigris-flexplatform/templates/ajax-tigrisvacancy.php:8
    • > PHP Notice
      Undefined index: att in wp-content/plugins/tigris-flexplatform/templates/form-tigrisvacancy.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/tigris-flexplatform/templates/vacancy_list.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/tigris-flexplatform/templates/form-tigrisresume.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% 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
6 plugin tags: salesforce, plugin for wordpress, wordpress extension, tigris, plugin package...

tigris-flexplatform/index.php 69% from 13 tests

This is the main PHP file of "Tigris Flexplatform" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tigris-flexplatform.php" instead of "index.php")
  • Domain Path: The domain path should be prefixed with a forward slash character ("//")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")

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 plugin5,255 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP155324863,138
CSS23219926
PO File2409434895
JavaScript23247246
SVG10050

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity27.50
▷ Minimum class complexity26.00
▷ Maximum class complexity29.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
Functions56
▷ Named functions5598.21%
▷ Anonymous functions11.79%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/amconsoft_logo.png9.33KB4.23KB▼ 54.62%
assets/img/plugin-icon.png0.94KB0.98KB0.00%