84% rubsum-social-links

Code Review | Plugin Name: RubSum Social Links

WordPress plugin Plugin Name: RubSum Social Linksscored84%from 54 tests.

About plugin

  • Plugin page: rubsum-social-links
  • Plugin version: 1.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Sep 30, 2018
  • Latest release: Oct 24, 2019
  • Number of updates: 6
  • Update frequency: every 64.8 days
  • Top authors: rubelbdp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Plugin Name: RubSum Social Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.31 ▲0.47
Dashboard /wp-admin3.31 ▲0.0151.24 ▲3.05
Posts /wp-admin/edit.php3.36 ▲0.0148.81 ▼0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.39 ▼18.75
Media Library /wp-admin/upload.php3.24 ▲0.0134.26 ▼6.11

Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
widget_rs_social_links_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: RubSum Social Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.59 ▼0.957.69 ▲5.6942.83 ▼0.62
Dashboard /wp-admin2,206 ▲215.88 ▼0.02108.18 ▼3.1541.54 ▼2.01
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0141.74 ▼1.1735.94 ▼0.53
Add New Post /wp-admin/post-new.php1,533 ▼123.04 ▼0.08592.43 ▼95.0053.38 ▼9.25
Media Library /wp-admin/upload.php1,388 ▼04.12 ▼0.0698.69 ▼7.7941.08 ▼10.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_rs_social_links_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rubsum-social-links/includes/rubsum-social-links-class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rubsum-social-links/includes/rubsum-social-links-scripts.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: RubSum Social Links=== )
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can take inspiration from this readme.txt

rubsum-social-links/rubsum-social-links.php Passed 13 tests

Analyzing the main PHP file in "Plugin Name: RubSum Social Links" version 1.0
38 characters long description:
Ads social icons with links to profile

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
No dangerous file extensions were detected161 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34159160
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook.png66.57KB26.72KB▼ 59.86%
images/google.png45.27KB15.44KB▼ 65.90%
images/linkedin.png7.65KB3.17KB▼ 58.52%
images/twitter.png109.51KB42.08KB▼ 61.58%