84% sharekoube

Code Review | Sharekoube

WordPress plugin Sharekoube scored84%from 54 tests.

About plugin

  • Plugin page: sharekoube
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2011
  • Latest release: Jul 7, 2011
  • Number of updates: 4
  • Update frequency: every 102.5 days
  • Top authors: nemooon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Sharekoube
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0628.34 ▼18.64
Dashboard /wp-admin3.32 ▲0.0251.63 ▼5.38
Posts /wp-admin/edit.php3.37 ▲0.0254.50 ▲2.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.84 ▼11.19
Media Library /wp-admin/upload.php3.24 ▲0.0239.71 ▲4.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sharekoube
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,458 ▼30314.19 ▼0.000.63 ▼1.0620.14 ▼24.84
Dashboard /wp-admin2,194 ▲175.56 ▼0.0185.20 ▼9.3241.30 ▼2.16
Posts /wp-admin/edit.php2,102 ▲52.01 ▲0.0538.83 ▲0.8134.11 ▼2.82
Add New Post /wp-admin/post-new.php1,528 ▲223.16 ▼0.47598.93 ▼21.4258.15 ▼1.20
Media Library /wp-admin/upload.php1,405 ▲24.17 ▼0.0995.39 ▼5.7945.88 ▲0.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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 short smoke test looking 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sharekoube/sharekoube-admin.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Share_Twitter' not found in wp-content/plugins/sharekoube/sharing-sources.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sharekoube/sharekoube.php:13

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Setting), #2 (Output)
The official readme.txt is a good inspiration

sharekoube/sharekoube.php Passed 13 tests

This is the main PHP file of "Sharekoube" version 0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
17 characters long description:
Extend Sharedaddy

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 plugin1,045 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP313439615
CSS24536355
PO File133075

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.71
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
23 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/google-plus-32x20.png1.53KB0.69KB▼ 54.73%
images/mixi-check-button_2.png1.73KB1.51KB▼ 12.70%
images/evernote-clipper-jp.png1.10KB1.07KB▼ 2.32%
screenshot-2.png38.41KB12.99KB▼ 66.19%
images/google-plus-50x20.png1.61KB0.77KB▼ 52.07%