79% amazing-widgets

Code Review | Amazing Widgets

WordPress plugin Amazing Widgets scored79%from 54 tests.

About plugin

  • Plugin page: amazing-widgets
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2015
  • Latest release: Nov 2, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: gabfire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,291 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
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.97ms] Passed 4 tests

This is a short check of server-side resources used by Amazing Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0946.17 ▲4.39
Dashboard /wp-admin3.50 ▲0.2053.67 ▲1.88
Posts /wp-admin/edit.php3.62 ▲0.2657.30 ▲2.95
Add New Post /wp-admin/post-new.php6.09 ▲0.20101.38 ▼11.67
Media Library /wp-admin/upload.php3.43 ▲0.2037.78 ▼1.02
Amazing Widgets /wp-admin/options-general.php?page=aw-settings3.3736.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Amazing Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.25 ▼0.032.39 ▲0.6445.95 ▲4.87
Dashboard /wp-admin2,202 ▲225.63 ▼0.0385.86 ▼1.0739.58 ▼3.15
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0139.37 ▼1.4434.87 ▼2.90
Add New Post /wp-admin/post-new.php1,540 ▲1018.45 ▼4.43640.99 ▲24.1757.96 ▲5.90
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0795.43 ▼15.4544.10 ▼1.67
Amazing Widgets /wp-admin/options-general.php?page=aw-settings1,1641.8531.2228.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=aw-settings
    • > 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=aw-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/amazing-widgets/inc/class-timeline-posts-widget.php
    • > /wp-content/plugins/amazing-widgets/inc/class-instagram-widget.php
    • > /wp-content/plugins/amazing-widgets/inc/class-post-tabs-widget.php
    • > /wp-content/plugins/amazing-widgets/inc/class-twitter-widget.php
    • > /wp-content/plugins/amazing-widgets/inc/class-social-widget.php
    • > /wp-content/plugins/amazing-widgets/inc/class-content-slider-widget.php
    • > /wp-content/plugins/amazing-widgets/lib/settings/aw-settings.php
    • > /wp-content/plugins/amazing-widgets/lib/settings/wp-settings-framework.php
    • > /wp-content/plugins/amazing-widgets/amazing-widgets.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
7 plugin tags: content slider, font awesome, social icons, post tabs, instagram...

amazing-widgets/amazing-widgets.php Passed 13 tests

"Amazing Widgets" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
This plugin adds a bundle of the most commonly used widgets to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,424 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP116831,1212,791
CSS563722,614
Sass1328241,520
LESS1328341,510
SVG200659
PO File1144156308
JavaScript20422

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity36.22
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods114
▷ Static methods32.63%
▷ Public methods7162.28%
▷ Protected methods4035.09%
▷ Private methods32.63%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin