83% style-extension-for-open-social

Code Review | Style Extension for Open Social

WordPress plugin Style Extension for Open Social scored83%from 54 tests.

About plugin

  • Plugin page: style-extension-f...
  • Plugin version: 0.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2016
  • Latest release: Oct 29, 2016
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: cfuyuki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /704 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Style Extension for Open Social
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.84 ▲0.10
Dashboard /wp-admin3.31 ▲0.0151.12 ▼4.46
Posts /wp-admin/edit.php3.36 ▲0.0148.20 ▼4.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.36 ▼20.26
Media Library /wp-admin/upload.php3.24 ▲0.0137.05 ▼0.89

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Style Extension for Open Social
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.071.75 ▼0.0544.81 ▲2.04
Dashboard /wp-admin2,195 ▲155.61 ▼0.0585.71 ▼8.4240.56 ▲0.63
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0135.70 ▼2.8333.06 ▼3.52
Add New Post /wp-admin/post-new.php1,526 ▼223.24 ▲0.20679.72 ▲8.4264.26 ▲0.91
Media Library /wp-admin/upload.php1,394 ▼94.20 ▲0.0696.94 ▼10.4940.18 ▼6.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/style-extension-for-open-social/plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Social share icons) image required
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

style-extension-for-open-social/plugin.php 77% from 13 tests

"Style Extension for Open Social" version 0.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("style-extension-for-open-social.php" instead of "plugin.php")
  • Domain Path: The domain path points to a folder that does not exist ("/lang")

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
Good job! No executable or dangerous file extensions detected624 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG17017526
CSS205262
Markdown112023
PHP141613

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/login_button.png36.96KB11.46KB▼ 68.98%
screenshot1.png31.52KB18.20KB▼ 42.26%