84% quickshare

Code Review | QuickShare

WordPress plugin QuickShare scored84%from 54 tests.

About plugin

  • Plugin page: quickshare
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 8, 2013
  • Latest release: Sep 18, 2023
  • Number of updates: 69
  • Update frequency: every 54.0 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

400+ active /16,738 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.02ms] Passed 4 tests

Server-side resources used by QuickShare
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.64 ▼2.01
Dashboard /wp-admin3.43 ▲0.0853.00 ▼18.55
Posts /wp-admin/edit.php3.54 ▲0.1852.95 ▼2.54
Add New Post /wp-admin/post-new.php6.01 ▲0.12102.76 ▼8.97
Media Library /wp-admin/upload.php3.35 ▲0.1239.00 ▼0.26
QuickShare /wp-admin/options-general.php?page=quickshare/quickshare.php3.3539.76

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
cxnh_quickshare_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by QuickShare
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.53 ▲0.131.61 ▼0.2741.74 ▼5.96
Dashboard /wp-admin2,199 ▲225.63 ▲0.0491.07 ▼0.1937.90 ▼4.64
Posts /wp-admin/edit.php2,104 ▲11.97 ▲0.0138.57 ▼6.6034.95 ▼5.72
Add New Post /wp-admin/post-new.php1,534 ▲823.21 ▼0.30685.19 ▲9.7957.14 ▲0.78
Media Library /wp-admin/upload.php1,407 ▲44.23 ▲0.0197.10 ▼2.8750.43 ▲6.31
QuickShare /wp-admin/options-general.php?page=quickshare/quickshare.php1,9264.1997.4123.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/quickshare/quickshare.php:32

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
Please take inspiration from this readme.txt

quickshare/quickshare.php Passed 13 tests

This is the main PHP file of "QuickShare" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Add quick social sharing functions to your content. Challenge social sharing norms with a flexible design and fast performance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,396 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15876588
CSS23447487
JavaScript11717188
SVG100133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/facebook.png3.64KB1.61KB▼ 55.80%
icons/email.png1.08KB1.06KB▼ 1.63%
icons/pinterest.png7.39KB7.45KB0.00%
icons/tumblr.png1.80KB1.75KB▼ 2.66%
icons/twitter.png1.74KB1.72KB▼ 1.01%