73% myweb

Code Review | MyWeb

WordPress plugin MyWeb scored73%from 54 tests.

About plugin

  • Plugin page: myweb
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Apr 25, 2021
  • Number of updates: 8
  • Update frequency: every 21.6 days
  • Top authors: udi15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 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.43MB] [CPU: ▲112.20ms] Passed 4 tests

This is a short check of server-side resources used by MyWeb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.39175.93 ▲140.39
Dashboard /wp-admin3.78 ▲0.47179.15 ▲129.90
Posts /wp-admin/edit.php3.83 ▲0.47165.84 ▲111.84
Add New Post /wp-admin/post-new.php6.31 ▲0.43201.75 ▲109.50
Media Library /wp-admin/upload.php3.64 ▲0.41131.30 ▲97.54
Toolbar /wp-admin/admin.php?page=accessibility-toolbar3.61148.86
Customize /wp-admin/customize.php?autofocus[section]=accessibility8.06297.86
Settings /wp-admin/admin.php?page=accessibility-settings3.61153.54

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 12 new options
New WordPress options
myweb_ac_customizer_options
myweb_urltype2
theysaidso_admin_options
can_compress_scripts
myweb_installed_time
widget_theysaidso_widget
myweb_popup_text
db_upgraded
widget_recent-comments
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by MyWeb
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,234 ▲48813.80 ▼0.588.26 ▲6.4960.09 ▲16.68
Dashboard /wp-admin2,241 ▲535.83 ▲0.9493.75 ▼6.7639.72 ▼3.26
Posts /wp-admin/edit.php2,124 ▲352.04 ▲0.0034.65 ▼6.3634.46 ▼2.78
Add New Post /wp-admin/post-new.php1,545 ▲2621.42 ▼1.73632.87 ▲47.8150.12 ▲6.03
Media Library /wp-admin/upload.php1,426 ▲384.19 ▼0.0099.30 ▼0.1543.03 ▲0.81
Toolbar /wp-admin/admin.php?page=accessibility-toolbar1,2112.0134.5331.04
Customize /wp-admin/customize.php?autofocus[section]=accessibility9,34322.01648.08148.77
Settings /wp-admin/admin.php?page=accessibility-settings1,0002.0722.5727.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • The uninstall procedure has failed, leaving 13 options in the database
    • myweb_installed_time
    • myweb_ac_customizer_options
    • widget_recent-comments
    • db_upgraded
    • myweb_toolbar_text
    • widget_recent-posts
    • theysaidso_admin_options
    • myweb_popup_text
    • myweb_urltype1
    • can_compress_scripts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?autofocus[section]=accessibility
    • > Notice in wp-content/plugins/myweb/public/class-myweb-public.php+376
    Undefined offset: 0
    • > GET request to /wp-admin/customize.php?autofocus[section]=accessibility
    • > Notice in wp-content/plugins/myweb/public/class-myweb-public.php+375
    Undefined offset: 1

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 fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/myweb/public/partials/myweb-public-display.php
    • > /wp-content/plugins/myweb/admin/partials/myweb-admin-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/customize.php?autofocus[section]=accessibility
    • > Security (warning) in unknown
    /?customize_changeset_uuid=6ab53374-d249-4988-91ec-1bfd6e2703aa&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: wcag, labels, aria, a11y, title...

myweb/myweb.php Passed 13 tests

The main PHP file in "MyWeb" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
MyWeb plugin is the fastest plugin to help you make your website more accessible.

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
Good job! No executable or dangerous file extensions detected3,691 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS310551,586
PHP152615381,500
PO File1232401344
JavaScript56732258
SVG1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods65
▷ Static methods46.15%
▷ Public methods5381.54%
▷ Protected methods00.00%
▷ Private methods1218.46%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants956.25%
▷ Class constants743.75%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/images/myweb-LOGO.png1.37KB0.93KB▼ 32.34%
public/assets/images/elementor-logo.png23.06KB2.37KB▼ 89.73%