79% tiqbiz-api

Code Review | Tiqbiz API

WordPress plugin Tiqbiz API scored79%from 54 tests.

About plugin

  • Plugin page: tiqbiz-api
  • Plugin version: 2.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Jul 22, 2014
  • Latest release: Mar 16, 2017
  • Number of updates: 72
  • Update frequency: every 13.5 days
  • Top authors: tiqbiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,505 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.46ms] Passed 4 tests

Analyzing server-side resources used by Tiqbiz API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.77 ▲1.41
Dashboard /wp-admin3.35 ▲0.0553.95 ▲0.29
Posts /wp-admin/edit.php3.46 ▲0.1149.28 ▼5.77
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.66 ▼2.63
Media Library /wp-admin/upload.php3.27 ▲0.0437.63 ▼1.73
Tiqbiz API Settings /wp-admin/options-general.php?page=tiqbiz-api-settings3.2236.93

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

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

Browser metrics Passed 4 tests

Tiqbiz API: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.30 ▼0.352.03 ▲0.3644.03 ▼4.49
Dashboard /wp-admin2,206 ▲295.67 ▼0.0897.82 ▼13.4641.06 ▼13.64
Posts /wp-admin/edit.php2,108 ▲82.03 ▼0.1433.56 ▼10.3234.58 ▼1.41
Add New Post /wp-admin/post-new.php1,542 ▼318.45 ▼4.84625.53 ▼54.4351.28 ▼1.50
Media Library /wp-admin/upload.php1,405 ▲84.25 ▲0.04133.04 ▲16.2349.35 ▲0.32
Tiqbiz API Settings /wp-admin/options-general.php?page=tiqbiz-api-settings8782.0623.6431.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=tiqbiz-api-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tiqbiz-api-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tiqbiz-api-settings
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/eventON/eventon.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=tiqbiz-api-settings
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/calpress-event-calendar/calpress.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=tiqbiz-api-settings
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/calpress-pro/calpress-pro.php): failed to open stream: No such file or directory

SRP 50% 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
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\ElementInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Element.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Converter/BlockquoteConverter.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Converter/PreformattedConverter.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Converter/HardBreakConverter.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Tiqbiz\\Api\\Api' not found in wp-content/plugins/tiqbiz-api/src/Settings.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Converter/CommentConverter.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Tiqbiz\\Api\\Api' not found in wp-content/plugins/tiqbiz-api/src/Posts.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Converter/LinkConverter.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Tiqbiz\\Api\\Posts' not found in wp-content/plugins/tiqbiz-api/src/Eventon.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/tiqbiz-api/src/html-to-markdown/src/Converter/ParagraphConverter.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: admin, api

tiqbiz-api/tiqbiz-api.php Passed 13 tests

The main PHP file in "Tiqbiz API" ver. 2.0.10 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Integrates your WordPress site with the Tiqbiz API

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,284 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP315365121,747
Markdown31300296
JavaScript1321124
CSS118069
JSON10048

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.55
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces3
Interfaces3
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes13.85%
Methods146
▷ Static methods10.68%
▷ Public methods11981.51%
▷ Protected methods138.90%
▷ Private methods149.59%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
assets/img/logo.png3.08KB1.97KB▼ 36.12%