79% o3-social-share

Code Review | O3 Social Share

WordPress plugin O3 Social Share scored79%from 54 tests.

About plugin

  • Plugin page: o3-social-share
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.2
  • WordPress version: 6.3.1
  • First release: Feb 29, 2012
  • Latest release: Apr 30, 2012
  • Number of updates: 34
  • Update frequency: every 1.8 days
  • Top authors: WeAreO3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /15,981 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.29MB] [CPU: ▼12.39ms] Passed 4 tests

An overview of server-side resources used by O3 Social Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.02 ▼2.51
Dashboard /wp-admin3.35 ▲0.0446.97 ▼0.07
Posts /wp-admin/edit.php3.40 ▲0.0447.67 ▲2.01
Add New Post /wp-admin/post-new.php4.64 ▼1.2544.28 ▼47.40
Media Library /wp-admin/upload.php3.27 ▲0.0434.34 ▲0.44
O3 Social Share /wp-admin/options-general.php?page=o3_social_share_options3.3031.72

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 14 new options
New WordPress options
widget_theysaidso_widget
o3_twitter_tweet_text
widget_recent-comments
can_compress_scripts
db_upgraded
o3_ss_pt
o3_facebook_verb
o3_ss_style
widget_recent-posts
o3_facebook_send
...

Browser metrics Passed 4 tests

O3 Social Share: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.22 ▼1.131.86 ▲0.0639.05 ▼6.27
Dashboard /wp-admin2,212 ▲245.84 ▲0.9694.50 ▼6.9837.20 ▼2.97
Posts /wp-admin/edit.php2,098 ▲92.00 ▼0.0439.31 ▲4.5033.24 ▼3.22
Add New Post /wp-admin/post-new.php1,533 ▲1623.23 ▲5.49594.66 ▼56.6662.32 ▲6.55
Media Library /wp-admin/upload.php1,391 ▲124.17 ▼0.0592.19 ▼5.4242.30 ▼0.89
O3 Social Share /wp-admin/options-general.php?page=o3_social_share_options1,4106.82187.6043.70

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

Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/o3-social-share/o3-social-share.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/o3-social-share/options.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=o3_social_share_options
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: googleplus, post to facebook, social share, facebook, google...

o3-social-share/o3-social-share.php Passed 13 tests

The entry point to "O3 Social Share" version 1.1.3 is a PHP file that has certain tags in its header comment area
76 characters long description:
This plugin creates share boxes for Facebook, Twitter, Google+, and LinkedIn

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 plugin432 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26510426
CSS1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin