84% tripadvisor-stream

Code Review | Tripadvisor Stream

WordPress plugin Tripadvisor Stream scored84%from 54 tests.

About plugin

  • Plugin page: tripadvisor-stream
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Apr 14, 2014
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: paskoski (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.81ms] Passed 4 tests

A check of server-side resources used by Tripadvisor Stream
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.39 ▼2.61
Dashboard /wp-admin3.33 ▲0.0343.04 ▼9.56
Posts /wp-admin/edit.php3.39 ▲0.0349.37 ▲3.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.24 ▼9.80
Media Library /wp-admin/upload.php3.26 ▲0.0336.01 ▲2.74
Tripadvisor Stream /wp-admin/options-general.php?page=tripadvisorsc3.2239.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tripadvisor Stream
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.72 ▼0.657.74 ▲5.9136.34 ▼9.14
Dashboard /wp-admin2,213 ▲255.91 ▲0.00103.82 ▼16.3338.74 ▼5.78
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0136.42 ▼2.5933.76 ▲0.28
Add New Post /wp-admin/post-new.php1,536 ▼623.02 ▲4.96642.79 ▼3.9155.70 ▼3.57
Media Library /wp-admin/upload.php1,389 ▲14.20 ▲0.0196.56 ▼0.3642.29 ▲0.12
Tripadvisor Stream /wp-admin/options-general.php?page=tripadvisorsc8842.2123.2327.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tripadvisor-stream/tripadvisor-stream.php:199

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt might help

tripadvisor-stream/tripadvisor-stream.php 92% from 13 tests

Analyzing the main PHP file in "Tripadvisor Stream" version 0.1
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

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
Success! There were no dangerous files found in this plugin282 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15231122
JavaScript12311115
CSS18045

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/social_icon_ta.png1.47KB0.88KB▼ 40.33%
img/loading.png0.92KB1.40KB0.00%
screenshot.png113.99KB35.39KB▼ 68.95%