84% eog-simplest-share-buttons

Code Review | EOG Simplest Share Buttons

WordPress plugin EOG Simplest Share Buttons scored84%from 54 tests.

About plugin

  • Plugin page: eog-simplest-shar...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2015
  • Latest release: Sep 25, 2015
  • Number of updates: 13
  • Update frequency: every 3.9 days
  • Top authors: elojografico (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by EOG Simplest Share Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3346.68 ▲4.56
Dashboard /wp-admin3.39 ▲0.0448.65 ▼14.68
Posts /wp-admin/edit.php3.44 ▲0.0847.09 ▼3.60
Add New Post /wp-admin/post-new.php6.12 ▲0.2399.66 ▼8.97
Media Library /wp-admin/upload.php3.31 ▲0.0841.65 ▲3.67
EOG Simplest Share Buttons /wp-admin/options-general.php?page=eog_ssb_options3.2834.61

Server storage [IO: ▲0.80MB] [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: 17 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
eog_ssb_settings
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by EOG Simplest Share Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.22 ▼0.131.88 ▲0.1039.38 ▼3.36
Dashboard /wp-admin2,196 ▲195.62 ▲0.0491.28 ▼5.4837.88 ▼2.34
Posts /wp-admin/edit.php2,107 ▲42.04 ▲0.0140.34 ▲2.9835.04 ▼0.09
Add New Post /wp-admin/post-new.php1,529 ▲323.63 ▲0.62679.12 ▲11.3558.72 ▼1.06
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.03104.61 ▼6.4845.87 ▼2.97
EOG Simplest Share Buttons /wp-admin/options-general.php?page=eog_ssb_options1,0572.1522.2329.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eog-simplest-share-buttons/includes/core.php:137
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eog-simplest-share-buttons/includes/admin.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eog-simplest-share-buttons/eog-simplest-share-buttons.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
8 plugin tags: gplus, facebook, buttons, network, whatsapp...

eog-simplest-share-buttons/eog-simplest-share-buttons.php 92% from 13 tests

The main PHP file in "EOG Simplest Share Buttons" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected2,114 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP41966801,038
SVG100565
CSS25118390
PO File14849120
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods925.71%
▷ Public methods3394.29%
▷ Protected methods25.71%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants325.00%
▷ Class constants975.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin