90% ruven-themes-sharing-links

Code Review | Ruven Themes: Sharing Links

WordPress plugin Ruven Themes: Sharing Links scored 90% from 54 tests.

About plugin

  • Plugin page: ruven-themes-shar...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 6
  • Update frequency: every 18.7 days
  • Top authors: Ruven Themes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,283 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.02ms] Passed 4 tests

Server-side resources used by Ruven Themes: Sharing Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.49 ▼9.15
Dashboard /wp-admin3.31 ▲0.0143.62 ▼3.20
Posts /wp-admin/edit.php3.37 ▲0.0147.09 ▲4.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.13 ▲3.78
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▲0.51

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-sharing-links/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/ruven-themes-sharing-links/assets/icon-128\303\227128.png"
    • (new file) "wp-content/plugins/ruven-themes-sharing-links/assets/icon-256\303\227256.png"
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Ruven Themes: Sharing Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼0.951.80 ▼0.2744.08 ▼1.30
Dashboard /wp-admin2,203 ▲125.80 ▲0.9194.77 ▼20.4640.19 ▼1.96
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0440.35 ▲4.4135.70 ▲4.01
Add New Post /wp-admin/post-new.php1,533 ▲1423.45 ▲0.30623.14 ▼46.4056.70 ▲5.18
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.0095.52 ▼3.0942.05 ▼1.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: social, google, sharing, facebook, twitter...

ruven-themes-sharing-links/ruven-themes-sharing-links.php Passed 13 tests

Analyzing the main PHP file in "Ruven Themes: Sharing Links" version 1.1
87 characters long description:
Extends the functionality of Ruven Themes by providing sharing links via function call.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1392351

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128×128.png5.43KB2.59KB▼ 52.22%
assets/icon-256×256.png4.72KB1.81KB▼ 61.65%