83% accedeme-for-wp

Code Review | Accesibilidad Web con el Widget de AccedeMe

WordPress plugin Accesibilidad Web con el Widget de AccedeMe scored83%from 54 tests.

About plugin

  • Plugin page: accedeme-for-wp
  • Plugin version: 0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2022
  • Latest release: Sep 30, 2023
  • Number of updates: 11
  • Update frequency: every 40.9 days
  • Top authors: carlosaccedeme (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /706 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.18ms] 75% from 4 tests

A check of server-side resources used by Accesibilidad Web con el Widget de AccedeMe
Please have a look at the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,860.36ms on /wp-admin/options-general.php?page=accedeme-plugin-option)
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.00 ▼1.30
Dashboard /wp-admin3.34 ▲0.0348.56 ▼8.22
Posts /wp-admin/edit.php3.45 ▲0.0947.09 ▼1.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.79 ▼9.74
Media Library /wp-admin/upload.php3.26 ▲0.0334.77 ▼0.76
WP Accedeme /wp-admin/options-general.php?page=accedeme-plugin-option3.251,860.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accesibilidad Web con el Widget de AccedeMe
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10715.78 ▲1.5372.56 ▲70.5440.74 ▼3.29
Dashboard /wp-admin2,213 ▲645.88 ▲0.2696.02 ▼0.3748.53 ▲11.31
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0236.29 ▲0.1731.59 ▼7.93
Add New Post /wp-admin/post-new.php1,537 ▲2323.04 ▲5.37671.91 ▼20.9754.11 ▼3.76
Media Library /wp-admin/upload.php1,395 ▲104.27 ▲0.0394.76 ▼22.9542.31 ▼10.05
WP Accedeme /wp-admin/options-general.php?page=accedeme-plugin-option7942.0224.4430.79

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/accedeme-for-wp/wp-accedeme.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
You can take inspiration from this readme.txt

accedeme-for-wp/wp-accedeme.php 77% from 13 tests

The entry point to "Accesibilidad Web con el Widget de AccedeMe" version 0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("accedeme-for-wp.php" instead of "wp-accedeme.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 199 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected6,755 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,6991,5106,443
PHP864110217
CSS10062
PO File1101233

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.17
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo_accedeme.png16.26KB5.03KB▼ 69.05%