80% share-computy

Code Review | Share computy

WordPress plugin Share computy scored 80% from 54 tests.

About plugin

  • Plugin page: share-computy
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 24, 2022
  • Latest release: Sep 13, 2023
  • Number of updates: 8
  • Update frequency: every 59.6 days
  • Top authors: calliko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 460 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.79ms] Passed 4 tests

This is a short check of server-side resources used by Share computy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.14 ▼5.57
Dashboard /wp-admin3.32 ▲0.0245.92 ▼7.19
Posts /wp-admin/edit.php3.37 ▲0.0248.74 ▲1.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.44 ▲3.87
Media Library /wp-admin/upload.php3.24 ▲0.0236.27 ▲0.49

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables
wp_share_computy
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Share computy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.90 ▼0.748.39 ▲6.5439.96 ▼7.74
Dashboard /wp-admin2,217 ▲295.85 ▲0.82108.13 ▲2.4840.92 ▼6.91
Posts /wp-admin/edit.php2,103 ▲141.99 ▼0.0539.89 ▲5.7236.23 ▲1.50
Add New Post /wp-admin/post-new.php1,539 ▲1523.14 ▲0.21598.02 ▲21.9943.78 ▼6.54
Media Library /wp-admin/upload.php1,402 ▲174.23 ▼0.0094.91 ▼4.2841.81 ▼0.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_share_computy
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: shares, share

share-computy/share-computy.php Passed 13 tests

The main PHP script in "Share computy" version 1.2.1 is automatically included on every request by WordPress
106 characters long description:
Displaying share buttons for an article, page or product card using the [buttons_share_computy] shortcode.

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
There were no executable files found in this plugin784 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP49036359
CSS250239
SVG1013142
JavaScript121744

PHP code Passed 2 tests

An short overview of 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.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin