10% genesis-optimized-social-share

Code Review | Genesis Optimized Social Share

WordPress plugin Genesis Optimized Social Share scored10%from 54 tests.

About plugin

  • Plugin page: genesis-optimized...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Dec 17, 2014
  • Number of updates: 23
  • Update frequency: every 17.3 days
  • Top authors: Scorpiongod (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /13,208 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.

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

This is a short check of server-side resources used by Genesis Optimized Social Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.34 ▼0.13
Dashboard /wp-admin3.31 ▲0.0043.62 ▼7.19
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.83 ▼9.53
Media Library /wp-admin/upload.php3.23 ▲0.0031.08 ▼14.75

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Optimized Social Share
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.68 ▲0.151.93 ▲0.2342.70 ▲1.98
Dashboard /wp-admin2,198 ▲185.65 ▲0.0093.02 ▲8.2540.12 ▼4.64
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0537.99 ▲3.5539.54 ▲6.66
Add New Post /wp-admin/post-new.php1,535 ▲718.29 ▼4.72608.42 ▼53.2166.42 ▲7.20
Media Library /wp-admin/upload.php1,400 ▲64.18 ▲0.0293.02 ▼0.9740.76 ▲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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/genesis-optimized-social-share/genesis-optimized-social-share.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can take inspiration from this readme.txt

genesis-optimized-social-share/genesis-optimized-social-share.php 92% from 13 tests

The principal PHP file in "Genesis Optimized Social Share" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102769

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin