84% standard-widget-extensions

Code Review | Standard Widget Extensions

WordPress plugin Standard Widget Extensions scored 84% from 54 tests.

About plugin

  • Plugin page: standard-widget-e...
  • Plugin version: 1.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2012
  • Latest release: May 6, 2015
  • Number of updates: 65
  • Update frequency: every 13.7 days
  • Top authors: blogger323 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active / 38,962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▲0.92ms] Passed 4 tests

A check of server-side resources used by Standard Widget Extensions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.46 ▼0.93
Dashboard /wp-admin3.47 ▲0.1748.71 ▼0.41
Posts /wp-admin/edit.php3.59 ▲0.2346.02 ▲2.49
Add New Post /wp-admin/post-new.php6.05 ▲0.1789.31 ▲2.61
Media Library /wp-admin/upload.php3.40 ▲0.1735.35 ▲2.54
Standard WE /wp-admin/options-general.php?page=hm_swe_option_page3.3733.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Standard Widget Extensions: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲25014.03 ▼0.6012.19 ▲10.4744.64 ▲0.89
Dashboard /wp-admin2,213 ▲256.06 ▲1.1599.78 ▼14.0646.95 ▲0.15
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0634.53 ▼4.0431.66 ▼1.08
Add New Post /wp-admin/post-new.php1,517 ▼1617.52 ▼5.88640.10 ▼37.0249.33 ▼1.97
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0794.28 ▼5.9441.97 ▼2.30
Standard WE /wp-admin/options-general.php?page=hm_swe_option_page1,2272.0933.8038.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/standard-widget-extensions/standard-widget-extensions.php:302

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === standard-widget-extensions === )
Please take inspiration from this readme.txt

standard-widget-extensions/standard-widget-extensions.php Passed 13 tests

The main PHP file in "Standard Widget Extensions" ver. 1.7.4 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Adds Sticky Sidebar and Accordion Widget features to your WordPress sites.

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
Everything looks great! No dangerous files found in this plugin2,462 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS134561,138
PHP212657765
JavaScript39459396
PO File17173163

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants28
▷ Global constants00.00%
▷ Class constants28100.00%
▷ Public constants28100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%