10% share-from-tiny-tiny-rss

Code Review | Share from Tiny Tiny RSS

WordPress plugin Share from Tiny Tiny RSS scored10%from 54 tests.

About plugin

  • Plugin page: share-from-tiny-t...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 1, 2013
  • Latest release: Oct 1, 2013
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: kjcoop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,097 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/share-from-tiny-tiny-rss/print_object.php+47
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.85MB] [CPU: ▼48.63ms] Passed 4 tests

An overview of server-side resources used by Share from Tiny Tiny RSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.338.03 ▼28.41
Dashboard /wp-admin2.16 ▼1.156.23 ▼40.81
Posts /wp-admin/edit.php2.16 ▼1.206.53 ▼39.43
Add New Post /wp-admin/post-new.php2.16 ▼3.735.87 ▼85.88
Media Library /wp-admin/upload.php2.16 ▼1.075.83 ▼25.94
Share from Tiny Tiny RSS /wp-admin/options-general.php?page=share-from-tiny-tiny-rss/share-from-ttrss.php2.165.37
Create Post from Tiny Tiny RSS /wp-admin/edit.php?page=share-from-tiny-tiny-rss/share-from-ttrss.php2.166.08

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
sf_ttrss_password
can_compress_scripts
sf_ttrss_user
widget_recent-posts
db_upgraded
widget_recent-comments
sf_ttrss_base
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Share from Tiny Tiny RSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.20 ▼1.151.70 ▲0.0744.31 ▲5.41
Dashboard /wp-admin2,214 ▲254.86 ▼0.06109.49 ▼8.9640.26 ▼4.62
Posts /wp-admin/edit.php2,100 ▲112.01 ▼0.0338.62 ▼0.7236.03 ▲3.95
Add New Post /wp-admin/post-new.php1,534 ▼818.19 ▲0.21624.70 ▲14.1650.33 ▼0.34
Media Library /wp-admin/upload.php1,399 ▲84.17 ▼0.0395.21 ▼1.8340.53 ▼2.90
Share from Tiny Tiny RSS /wp-admin/options-general.php?page=share-from-tiny-tiny-rss/share-from-ttrss.php8012.0325.1025.66
Create Post from Tiny Tiny RSS /wp-admin/edit.php?page=share-from-tiny-tiny-rss/share-from-ttrss.php7572.0324.9423.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/share-from-tiny-tiny-rss/print_object.php+47
    Array and string offset access syntax with curly braces is deprecated
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • sf_ttrss_user
    • sf_ttrss_password
    • can_compress_scripts
    • sf_ttrss_base
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=share-from-tiny-tiny-rss/share-from-ttrss.php
    • > Deprecated in wp-content/plugins/share-from-tiny-tiny-rss/print_object.php+47
    Array and string offset access syntax with curly braces is deprecated
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=share-from-tiny-tiny-rss/share-from-ttrss.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CURL' not found in wp-content/plugins/share-from-tiny-tiny-rss/class.ttrss_api.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/share-from-tiny-tiny-rss/share-from-ttrss.php:43

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Version format is invalid
  • Tested up to: Version format is invalid
The official readme.txt might help

share-from-tiny-tiny-rss/share-from-ttrss.php 92% from 13 tests

"Share from Tiny Tiny RSS" version 0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("share-from-tiny-tiny-rss.php" instead of "share-from-ttrss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected456 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4133191456

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods17.69%
▷ Private methods323.08%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected