90% widget-speed-test-for-elementor

Code Review | Widget Speed Test for Elementor

WordPress plugin Widget Speed Test for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: widget-speed-test...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Apr 25, 2023
  • Number of updates: 15
  • Update frequency: every 10.7 days
  • Top authors: scottybowl2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /835 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.00MB] [CPU: ▼11.56ms] Passed 4 tests

A check of server-side resources used by Widget Speed Test for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.72 ▼8.95
Dashboard /wp-admin3.31 ▲0.0043.15 ▼5.01
Posts /wp-admin/edit.php3.36 ▲0.0045.60 ▼5.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.99 ▼26.43
Media Library /wp-admin/upload.php3.23 ▲0.0032.43 ▲0.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Widget Speed Test for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.64 ▼0.741.64 ▼0.3241.22 ▼5.47
Dashboard /wp-admin2,206 ▲155.89 ▲0.99113.53 ▲10.3243.50 ▲2.00
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0540.79 ▲3.0037.48 ▲3.33
Add New Post /wp-admin/post-new.php1,542 ▲2818.62 ▲1.13617.52 ▼59.1349.32 ▼6.69
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0299.25 ▲0.6242.72 ▲0.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: speed, elementor pro, elementor, widgets, google page speed

widget-speed-test-for-elementor/widget-speed-test-for-elementor.php 92% from 13 tests

"Widget Speed Test for Elementor" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected255 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14960117
CSS1243110
JavaScript115428

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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