84% widgets-view-custom

Code Review | WIDGETS VIEW CUSTOM

WordPress plugin WIDGETS VIEW CUSTOM scored84%from 54 tests.

About plugin

  • Plugin page: widgets-view-custom
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2012
  • Latest release: May 16, 2013
  • Number of updates: 11
  • Update frequency: every 23.3 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,434 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.61ms] Passed 4 tests

Analyzing server-side resources used by WIDGETS VIEW CUSTOM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.33 ▼5.92
Dashboard /wp-admin3.35 ▲0.0449.59 ▼6.22
Posts /wp-admin/edit.php3.40 ▲0.0451.85 ▼2.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.32 ▼19.83
Media Library /wp-admin/upload.php3.27 ▲0.0434.70 ▲1.02
Widgets view custom /wp-admin/options-general.php?page=widgets_view_custom3.2431.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WIDGETS VIEW CUSTOM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.45 ▲0.071.74 ▼0.1443.08 ▼0.14
Dashboard /wp-admin2,213 ▲285.88 ▲0.02100.36 ▲1.0542.10 ▼3.37
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0335.60 ▼5.6131.66 ▼1.98
Add New Post /wp-admin/post-new.php1,537 ▲423.32 ▲0.08629.81 ▼2.0150.53 ▲0.56
Media Library /wp-admin/upload.php1,386 ▼54.15 ▼0.1295.70 ▼2.1543.01 ▲2.13
Widgets view custom /wp-admin/options-general.php?page=widgets_view_custom1,2032.1233.3324.57

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/widgets-view-custom/widgets-view-custom.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Interface in setting), #2 (While setting), #3 (Screen widget)
The official readme.txt is a good inspiration

widgets-view-custom/widgets-view-custom.php 92% from 13 tests

Analyzing the main PHP file in "WIDGETS VIEW CUSTOM" version 1.1.2
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin355 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16833233
PO File125062
CSS15043
JavaScript14117

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.42KB17.58KB▼ 61.30%
screenshot-2.png42.46KB16.50KB▼ 61.14%
screenshot-3.png58.85KB22.25KB▼ 62.20%