10% creative-socials

Code Review | Creative Socials

WordPress plugin Creative Socials scored10%from 54 tests.

About plugin

  • Plugin page: creative-socials
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2015
  • Latest release: Jan 31, 2015
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: megatpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/creative-socials/socials-widgets.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; socials_icons_Widget has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼53.94ms] Passed 4 tests

An overview of server-side resources used by Creative Socials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.14 ▼38.72
Dashboard /wp-admin2.14 ▼1.206.22 ▼55.25
Posts /wp-admin/edit.php2.14 ▼1.227.09 ▼39.48
Add New Post /wp-admin/post-new.php2.14 ▼3.756.20 ▼82.32
Media Library /wp-admin/upload.php2.14 ▼1.095.65 ▼31.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 7 new options
New WordPress options
widget_socials-icons
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Creative Socials: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.26 ▼0.271.80 ▼0.1343.96 ▼5.39
Dashboard /wp-admin2,210 ▲305.54 ▼0.0892.82 ▲2.4365.60 ▲25.46
Posts /wp-admin/edit.php2,121 ▲241.97 ▼0.0537.88 ▲0.8633.39 ▼8.15
Add New Post /wp-admin/post-new.php1,554 ▲2623.14 ▼0.12784.67 ▲101.7962.85 ▲7.13
Media Library /wp-admin/upload.php1,412 ▲124.08 ▼0.10103.52 ▼3.7370.06 ▲20.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/creative-socials/socials-widgets.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; socials_icons_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_socials-icons
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-socials/socials-panel.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-socials/socials-widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/creative-socials/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-socials/socials-panel.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt might help

creative-socials/socials.php 92% from 13 tests

"Creative Socials" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("creative-socials.php" instead of "socials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin17,942 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62,1171,22012,164
CSS71441643,250
PHP4180461,202
LESS141927
SVG200399

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity40.50
▷ Minimum class complexity9.00
▷ Maximum class complexity72.00
Average method complexity6.27
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
57 PNG files occupy 0.55MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/success.png2.12KB0.99KB▼ 53.20%
assets/css/images/ui-icons_286581_256x240.png5.23KB4.11KB▼ 21.49%
assets/images/empty.png0.10KB0.09KB▼ 3.06%
assets/images/specer.png0.10KB0.09KB▼ 3.06%
assets/images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%