78% laiser-tag-insights

Code Review | Laiser Tag Insights

WordPress plugin Laiser Tag Insights scored78%from 54 tests.

About plugin

  • Plugin page: laiser-tag-insights
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Jun 8, 2018
  • Latest release: Mar 9, 2019
  • Number of updates: 13
  • Update frequency: every 21.0 days
  • Top authors: pcis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.37ms] Passed 4 tests

An overview of server-side resources used by Laiser Tag Insights
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.43 ▲0.60
Dashboard /wp-admin3.31 ▲0.0049.17 ▼5.09
Posts /wp-admin/edit.php3.36 ▲0.0044.35 ▼5.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.11 ▼3.41
Media Library /wp-admin/upload.php3.23 ▲0.0038.93 ▲3.54

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Laiser Tag Insights: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.36 ▼0.991.69 ▲0.0843.60 ▼1.66
Dashboard /wp-admin2,224 ▲184.85 ▼1.00102.54 ▼2.8936.74 ▼9.98
Posts /wp-admin/edit.php2,097 ▼62.05 ▲0.0137.27 ▼5.7031.65 ▼9.01
Add New Post /wp-admin/post-new.php1,545 ▲523.31 ▲0.18664.12 ▲43.0864.63 ▼26.35
Media Library /wp-admin/upload.php1,403 ▲124.27 ▲0.0399.68 ▼2.6546.17 ▼2.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/laiser-tag-insights/templates/graphs.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: lti_ltbb_issues in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 619
    • > PHP Notice
      Undefined variable: lti_ltbb_email in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 518
    • > PHP Notice
      Undefined variable: lti_ltbb_status in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 557
    • > PHP Warning
      Use of undefined constant LTI_ASSETS_URL - assumed 'LTI_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 21
    • > PHP Notice
      Undefined variable: lti_ltbb_status in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 568
    • > PHP Notice
      Undefined variable: lti_ltbb_status in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 573
    • > PHP Notice
      Undefined variable: lti_ltbb_api_oauth in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 525
    • > PHP Notice
      Undefined variable: lti_ltbb_in_active_site_list in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 600
    • > PHP Notice
      Undefined variable: lti_ltbb_valid_gw in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 584
    • > PHP Notice
      Undefined variable: lti_ltbb_status in wp-content/plugins/laiser-tag-insights/templates/graphs.php on line 563

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: tagging, open calais, content optimization, taxonomy, semantic data

laiser-tag-insights/laisertaginsights.php 92% from 13 tests

The main PHP file in "Laiser Tag Insights" ver. 1.1.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:
  • Main file name: Name the main plugin file the same as the plugin slug ("laiser-tag-insights.php" instead of "laisertaginsights.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin20,804 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript393,2043,13013,481
HTML28724272,934
Markdown679002,160
PHP37325864
SQL200717
CSS310054580
Bourne Shell14034
JSON70028
make1426

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.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
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/flot/examples/background.png0.23KB0.33KB0.00%
assets/img/lti_logo.png14.03KB5.95KB▼ 57.62%