10% aasigninwidget

Code Review | AA Signin Widget

WordPress plugin AA Signin Widget scored10%from 54 tests.

About plugin

  • Plugin page: aasigninwidget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2014
  • Latest release: Nov 17, 2014
  • Number of updates: 13
  • Update frequency: every 3.0 days
  • Top authors: aaextention (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,200 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/aasigninwidget/aasignin.php+131
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼57.07ms] Passed 4 tests

Server-side resources used by AA Signin Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.448.76 ▼44.24
Dashboard /wp-admin2.05 ▼1.265.70 ▼46.61
Posts /wp-admin/edit.php2.05 ▼1.316.09 ▼43.63
Add New Post /wp-admin/post-new.php2.05 ▼3.846.40 ▼93.81
Media Library /wp-admin/upload.php2.05 ▼1.185.48 ▼32.58

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_aa_login_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for AA Signin Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.69 ▲0.001.74 ▼0.6740.65 ▼3.72
Dashboard /wp-admin2,192 ▲155.74 ▲0.0787.02 ▼2.1739.50 ▲0.43
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0234.33 ▼3.6634.89 ▼1.58
Add New Post /wp-admin/post-new.php1,531 ▲223.23 ▲0.06643.17 ▼9.5550.94 ▼10.15
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.00103.74 ▼1.0744.39 ▼1.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/aasigninwidget/aasignin.php+131
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_aa_login_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aasigninwidget/aasignin.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: signup, login, aaextension, signin widget, signin...

aasigninwidget/aasignin.php 92% from 13 tests

"AA Signin Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aasigninwidget.php" instead of "aasignin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14252106

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.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected