84% yalw

Code Review | YALW

WordPress plugin YALW scored84%from 54 tests.

About plugin

  • Plugin page: yalw
  • Plugin version: 0.16.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 20, 2016
  • Latest release: Jul 23, 2023
  • Number of updates: 33
  • Update frequency: every 83.1 days
  • Top authors: otacke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.45ms] Passed 4 tests

Server-side resources used by YALW
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2044.12 ▼4.69
Dashboard /wp-admin3.51 ▲0.2148.78 ▼2.96
Posts /wp-admin/edit.php3.63 ▲0.2747.82 ▼0.03
Add New Post /wp-admin/post-new.php6.09 ▲0.2187.40 ▼2.12
Media Library /wp-admin/upload.php3.44 ▲0.2137.83 ▲1.60
YALW /wp-admin/options-general.php?page=yalw-admin3.4030.99

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_yalw
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by YALW
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.26 ▼1.141.96 ▼0.6444.27 ▲0.59
Dashboard /wp-admin2,215 ▲274.86 ▼1.0598.96 ▼17.1839.81 ▼5.01
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0035.34 ▲0.3934.63 ▼1.60
Add New Post /wp-admin/post-new.php1,532 ▼122.09 ▼1.06698.73 ▼2.1756.71 ▲2.63
Media Library /wp-admin/upload.php1,397 ▲64.19 ▼0.0196.69 ▼9.7744.30 ▼1.21
YALW /wp-admin/options-general.php?page=yalw-admin8072.0523.0428.03

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_yalw
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/yalw/yalw.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: authentification, login, widget

yalw/yalw.php 85% from 13 tests

The primary PHP file in "YALW" version 0.16.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: The description should be shorter than 140 characters (currently 251 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,243 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6151521803
XML193249156
PO File15899139
CSS15219120
Markdown113025

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods52
▷ Static methods4178.85%
▷ Public methods3771.15%
▷ Protected methods00.00%
▷ Private methods1528.85%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin