84% chromeless-widgets-page

Code Review | Chromeless Widgets Page

WordPress plugin Chromeless Widgets Page scored84%from 54 tests.

About plugin

  • Plugin page: chromeless-widget...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Sep 18, 2023
  • Number of updates: 17
  • Update frequency: every 187.6 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,671 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Chromeless Widgets Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.68 ▼2.61
Dashboard /wp-admin3.32 ▼0.0247.51 ▼18.27
Posts /wp-admin/edit.php3.38 ▲0.0245.87 ▼2.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.50 ▼15.24
Media Library /wp-admin/upload.php3.25 ▲0.0236.56 ▲0.46

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chromeless Widgets Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.20 ▼0.041.58 ▼0.2442.77 ▼0.09
Dashboard /wp-admin2,189 ▲255.54 ▼0.0483.94 ▼22.8235.11 ▼3.85
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0036.38 ▼5.5835.22 ▲2.06
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▲0.08609.87 ▼10.6657.96 ▼4.49
Media Library /wp-admin/upload.php1,397 ▼04.16 ▼0.03109.57 ▲7.3448.00 ▲4.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though no errors were found, 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/chromeless-widgets-page/page-template.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chromeless-widgets-page/chromeless-widget-page.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chromeless-widgets-page/customize-options.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

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
4 plugin tags: single page, widgets, external, one page

chromeless-widgets-page/chromeless-widget-page.php 92% from 13 tests

The main file in "Chromeless Widgets Page" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("chromeless-widgets-page.php" instead of "chromeless-widget-page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected121 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32151114
JavaScript1037

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin