89% easy-read-and-pictograms-blocks-for-gutenberg

Code Review | Easy Read and Pictograms blocks for Gutenberg

WordPress plugin Easy Read and Pictograms blocks for Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: easy-read-and-pic...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Jun 22, 2018
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: estudioinclusivo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /686 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.82ms] Passed 4 tests

Analyzing server-side resources used by Easy Read and Pictograms blocks for Gutenberg
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.55 ▲3.41
Dashboard /wp-admin3.31 ▲0.0148.36 ▼4.43
Posts /wp-admin/edit.php3.36 ▲0.0044.16 ▼1.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.21 ▲7.41
Media Library /wp-admin/upload.php3.23 ▲0.0036.00 ▼0.70

Server storage [IO: ▲0.42MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Easy Read and Pictograms blocks for Gutenberg: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲14013.64 ▼1.018.59 ▲6.8342.81 ▼3.88
Dashboard /wp-admin2,203 ▲154.86 ▼1.02109.77 ▼5.8444.50 ▲2.34
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0636.94 ▼5.9831.70 ▼3.24
Add New Post /wp-admin/post-new.php6,189 ▲4,67518.86 ▲1.22933.47 ▲237.3040.47 ▼17.32
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0595.05 ▲0.1342.38 ▼3.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Screenshot 1: It shows the easy read blocks that can be added from Gutenberg.), #2 (Screenshot 2: View content in normal mode, Easy Read button disabled.), #3 (Screenshot 3: View content with Easy Read mode activated and its active button.)
The official readme.txt might help

easy-read-and-pictograms-blocks-for-gutenberg/index.php 77% from 13 tests

Analyzing the main PHP file in "Easy Read and Pictograms blocks for Gutenberg" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-read-and-pictograms-blocks-for-gutenberg.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 259 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected443 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36920267
CSS420490
PHP3382586

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
5 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.PNG53.55KB25.65KB▼ 52.10%
img/pictogramas/lectura-facil-off.png53.13KB13.28KB▼ 75.00%
screenshot-3.PNG52.74KB19.38KB▼ 63.26%
screenshot-2.PNG43.82KB16.80KB▼ 61.67%
img/pictogramas/lectura-facil-on.png51.45KB14.91KB▼ 71.02%