84% jenus-lightweight-social-share

Code Review | Lightweight Social Share for Genesis

WordPress plugin Lightweight Social Share for Genesis scored84%from 54 tests.

About plugin

  • Plugin page: jenus-lightweight...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 20, 2017
  • Latest release: Jul 4, 2017
  • Number of updates: 33
  • Update frequency: every 4.9 days
  • Top authors: jenusits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Lightweight Social Share for Genesis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.43 ▼5.31
Dashboard /wp-admin3.31 ▼0.0448.37 ▼19.87
Posts /wp-admin/edit.php3.36 ▲0.0051.53 ▲2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.83 ▼16.12
Media Library /wp-admin/upload.php3.23 ▲0.0036.95 ▲2.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Lightweight Social Share for Genesis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.311.83 ▼0.2042.46 ▼0.77
Dashboard /wp-admin2,200 ▲125.81 ▲0.93101.05 ▼16.2641.21 ▼4.59
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0439.90 ▲3.0235.25 ▲0.44
Add New Post /wp-admin/post-new.php1,542 ▲1418.18 ▼5.02618.40 ▼27.1960.30 ▲6.33
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.23100.31 ▼5.5946.67 ▼0.72

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jenus-lightweight-social-share/jenus-lightweight-social-share.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

jenus-lightweight-social-share/jenus-lightweight-social-share.php Passed 13 tests

The primary PHP file in "Lightweight Social Share for Genesis" version 1.3.3 is used by WordPress to initiate all plugin functionality
36 characters long description:
A basic and fast social share plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin8,650 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS314152,383
Sass1434341,768
LESS1434441,758
PHP1171763
JavaScript1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin