83% r-cool-social-buttons

Code Review | R-Cool-Social-Buttons

WordPress plugin R-Cool-Social-Buttons scored83%from 54 tests.

About plugin

  • Plugin page: r-cool-social-but...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 13, 2014
  • Latest release: Sep 14, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rasel2339 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /803 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 gracefully, with no errors

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

This is a short check of server-side resources used by R-Cool-Social-Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.03 ▼4.74
Dashboard /wp-admin3.31 ▼0.0444.52 ▼18.06
Posts /wp-admin/edit.php3.36 ▲0.0044.02 ▼4.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.96 ▼10.03
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▲3.69

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

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

Browser metrics Passed 4 tests

R-Cool-Social-Buttons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.65 ▼0.728.87 ▲7.0840.74 ▼3.51
Dashboard /wp-admin2,209 ▲214.87 ▼0.9896.76 ▼7.6739.29 ▼4.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.39 ▼1.2336.33 ▲2.62
Add New Post /wp-admin/post-new.php1,542 ▲118.31 ▼0.03637.47 ▲41.9273.45 ▲25.48
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0397.91 ▲3.3045.74 ▼2.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/r-cool-social-buttons/r-coll-social-buttons.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Working scroll up wordpress plugin.) image not found
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

r-cool-social-buttons/r-coll-social-buttons.php 92% from 13 tests

The main file in "R-Cool-Social-Buttons" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("r-cool-social-buttons.php" instead of "r-coll-social-buttons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,516 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS328161,802
SVG100520
JavaScript27125114
PHP1361648
HTML115332

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions4
▷ Named functions4100.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