78% genesis-simple-share

Code Review | Genesis Simple Share

WordPress plugin Genesis Simple Share scored78%from 54 tests.

About plugin

  • Plugin page: genesis-simple-share
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Jan 6, 2015
  • Latest release: Aug 15, 2023
  • Number of updates: 47
  • Update frequency: every 66.9 days
  • Top authors: Nick_theGeek (44.68%)nathanrice (29.79%)studiopress (19.15%)osompress (12.77%)

Code review

54 tests

User reviews

33 reviews

Install metrics

30,000+ active /422,469 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
Install script ran successfully

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

Server-side resources used by Genesis Simple Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.23 ▲3.56
Dashboard /wp-admin3.31 ▲0.0150.84 ▲1.71
Posts /wp-admin/edit.php3.36 ▲0.0151.86 ▲0.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.53 ▼13.94
Media Library /wp-admin/upload.php3.23 ▲0.0138.72 ▲1.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Simple Share
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.791.84 ▼0.1644.53 ▲2.00
Dashboard /wp-admin2,203 ▲154.83 ▼1.00101.58 ▼4.1141.44 ▼2.66
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0335.34 ▼7.2734.89 ▼1.95
Add New Post /wp-admin/post-new.php1,538 ▲123.05 ▲4.61665.32 ▲35.6554.09 ▼0.55
Media Library /wp-admin/upload.php1,385 ▼34.12 ▼0.0896.51 ▼12.5944.10 ▼3.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-front-end.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-entry-meta.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/includes/functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-boxes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-preview.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/plugin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: stumbleupon, pinterest, social, genesis, facebook...

genesis-simple-share/plugin.php 92% from 13 tests

The main PHP file in "Genesis Simple Share" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("genesis-simple-share.php" instead of "plugin.php")

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,300 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP73915571,098
SVG100133
Markdown222062
CSS4444
JavaScript3023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.25
▷ Minimum class complexity8.00
▷ Maximum class complexity69.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected