66% adapter-widget-rows

Code Review | Adapter Widget Rows

WordPress plugin Adapter Widget Rows scored 66% from 54 tests.

About plugin

  • Plugin page: adapter-widget-rows
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 5.9.2
  • First release: Sep 24, 2014
  • Latest release: Jun 8, 2015
  • Number of updates: 11
  • Update frequency: every 23.6 days
  • Top authors: ryankienstra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,560 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.11MB] [CPU: ▼299.26ms] Passed 4 tests

Server-side resources used by Adapter Widget Rows
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1756.32 ▲3.49
Dashboard /wp-admin3.52 ▲0.1134.05 ▼0.83
Posts /wp-admin/edit.php3.74 ▲0.1037.71 ▲0.97
Add New Post /wp-admin/post-new.php7.05 ▲0.0895.41 ▼1,192.34
Media Library /wp-admin/upload.php3.46 ▲0.1625.42 ▼4.83
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php4.7146.98
Widget Rows /wp-admin/options-general.php?page=awr_options_page3.3421.47

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 5 new options
New WordPress options
widget_recent-posts
map_awr_index_to_page_title
map_awr_index_to_page_id
widget_recent-comments
awr_titles_in_trash

Browser metrics Passed 4 tests

An overview of browser requirements for Adapter Widget Rows
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲6315.91 ▲0.145.90 ▼0.052.21 ▼0.24
Dashboard /wp-admin2,899 ▲386.15 ▼0.01115.76 ▼31.36158.86 ▼7.84
Posts /wp-admin/edit.php2,698 ▲73.24 ▼0.0063.93 ▲0.51139.85 ▲0.01
Add New Post /wp-admin/post-new.php1,766 ▲9823.07 ▲4.68406.75 ▲17.66167.84 ▲6.08
Media Library /wp-admin/upload.php1,708 ▲105.49 ▼0.04145.26 ▲8.57191.03 ▼1.27
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php7,21819.85520.11157.50
Widget Rows /wp-admin/options-general.php?page=awr_options_page1,0172.6454.57119.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 5 options in the database
    • awr_titles_in_trash
    • widget_recent-comments
    • map_awr_index_to_page_id
    • widget_recent-posts
    • map_awr_index_to_page_title

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object
    • > GET request to /wp-admin/options-general.php?page=awr_options_page
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=awr_options_page
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adapter-widget-rows/includes/awr-default-template.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adapter-widget-rows/includes/awr-pages-and-sidebars.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function awr_current_user_can_edit_widgets() in wp-content/plugins/adapter-widget-rows/includes/awr-icons-popovers.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adapter-widget-rows/includes/awr-sidebar-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/adapter-widget-rows/includes/bootstrap-column-classes.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adapter-widget-rows/js/awr-customizer-iframe.js?ver=1.0.1:185:20)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: $(...).live is not a function
    • > GET request to /wp-admin/options-general.php?page=awr_options_page
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adapter-widget-rows/js/awr-options-pages.js?ver=1.0.1:5:27)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=awr_options_page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

adapter-widget-rows/adapter-widget-rows.php 92% from 13 tests

The entry point to "Adapter Widget Rows" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

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
There were no executable files found in this plugin1,282 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript513332619
PHP910013584
CSS120179

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.67
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods930.00%
▷ Protected methods00.00%
▷ Private methods2170.00%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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