66% adapter-widget-rows

Code Review | Adapter Widget Rows

WordPress plugin Adapter Widget Rows scored66%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: 6.3.1
  • 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,827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Adapter Widget Rows
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.47 ▼5.87
Dashboard /wp-admin3.32 ▼0.0249.77 ▼15.24
Posts /wp-admin/edit.php3.37 ▲0.0251.56 ▲0.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.29 ▼37.95
Media Library /wp-admin/upload.php3.24 ▲0.0234.82 ▼2.21
Widget Rows /wp-admin/options-general.php?page=awr_options_page3.1931.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
map_awr_index_to_page_title
theysaidso_admin_options
widget_recent-comments
map_awr_index_to_page_id
awr_titles_in_trash
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Adapter Widget Rows: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.64 ▲0.292.24 ▲0.6043.72 ▼1.33
Dashboard /wp-admin2,199 ▲255.59 ▲0.0486.82 ▼1.8940.80 ▼1.20
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0535.30 ▼5.7133.17 ▼1.26
Add New Post /wp-admin/post-new.php1,529 ▲122.97 ▼0.16694.72 ▲27.8767.72 ▲17.38
Media Library /wp-admin/upload.php1,398 ▲14.17 ▲0.0097.86 ▼6.3343.25 ▲2.03
Widget Rows /wp-admin/options-general.php?page=awr_options_page8112.0128.3828.78

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • map_awr_index_to_page_id
    • theysaidso_admin_options
    • awr_titles_in_trash
    • can_compress_scripts
    • map_awr_index_to_page_title
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=awr_options_page
    • > User deprecated in wp-includes/functions.php+5463
    Function 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+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/adapter-widget-rows/includes/awr-default-template.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > 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-pages-and-sidebars.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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > 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=6.3.1 1:28609 "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=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" 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=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

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
Attributes that need to be fixed: You can take inspiration from this readme.txt

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

This is the main PHP file of "Adapter Widget Rows" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 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
Everything looks great! No dangerous 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

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin