84% taringa-for-jetpack

Code Review | Taringa! for Jetpack

WordPress plugin Taringa! for Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: taringa-for-jetpack
  • Plugin version: 0.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.6
  • WordPress version: 6.3.1
  • First release: Sep 5, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: eliorivero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by Taringa! for Jetpack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.11 ▼0.62
Dashboard /wp-admin3.31 ▲0.0047.43 ▼2.96
Posts /wp-admin/edit.php3.36 ▲0.0048.90 ▼2.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.55 ▼3.34
Media Library /wp-admin/upload.php3.23 ▲0.0032.96 ▼4.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Taringa! for Jetpack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.451.75 ▲0.0941.39 ▼2.31
Dashboard /wp-admin2,195 ▲155.66 ▼0.0190.61 ▲1.2340.30 ▲0.35
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0438.64 ▲2.1935.70 ▲0.82
Add New Post /wp-admin/post-new.php1,536 ▲1018.20 ▼5.06628.15 ▼53.0065.28 ▲12.74
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.01108.91 ▼3.9943.22 ▼1.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 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 'Sharing_Source' not found in wp-content/plugins/taringa-for-jetpack/class.share-taringa.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/taringa-for-jetpack/taringa-for-jetpack.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
4 plugin tags: taringa, social network, sharing, jetpack

taringa-for-jetpack/taringa-for-jetpack.php 85% from 13 tests

The entry point to "Taringa! for Jetpack" version 0.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected205 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3235574
CSS17069
JavaScript13043
SVG20019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/share-taringa.png0.67KB0.64KB▼ 4.82%