90% exs-widgets

Code Review | ExS Widgets

WordPress plugin ExS Widgets scored90%from 54 tests.

About plugin

  • Plugin page: exs-widgets
  • Plugin version: 0.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Sep 6, 2020
  • Latest release: Jul 19, 2022
  • Number of updates: 6
  • Update frequency: every 113.7 days
  • Top authors: exstheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /18,616 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.22MB] [CPU: ▼3.34ms] Passed 4 tests

An overview of server-side resources used by ExS Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2441.33 ▼3.37
Dashboard /wp-admin3.53 ▲0.1951.99 ▼13.35
Posts /wp-admin/edit.php3.64 ▲0.2953.36 ▲0.72
Add New Post /wp-admin/post-new.php6.12 ▲0.2395.19 ▲2.88
Media Library /wp-admin/upload.php3.45 ▲0.2340.36 ▲2.63

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theme-spacer
widget_recent-comments
widget_custom-posts
widget_theysaidso_widget
widget_theme-category

Browser metrics Passed 4 tests

ExS Widgets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.15 ▼1.241.73 ▼0.2640.28 ▲0.56
Dashboard /wp-admin2,203 ▲125.88 ▲0.89100.68 ▼17.3638.07 ▼1.63
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0141.14 ▼0.1436.34 ▼0.99
Add New Post /wp-admin/post-new.php6,181 ▲4,63819.72 ▲1.35924.30 ▲260.0563.15 ▲12.45
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.04116.60 ▲11.4848.70 ▲5.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theme-spacer
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_custom-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theme-category
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: widgets, widget

exs-widgets/exs-widgets.php Passed 13 tests

The main file in "ExS Widgets" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Additional extended custom widgets

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,032 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP172002581,775
JavaScript252256
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity28.75
▷ Minimum class complexity18.00
▷ Maximum class complexity37.00
Average method complexity7.53
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected