89% mowomo-bloques

Code Review | mowomo bloques

WordPress plugin mowomo bloques scored89%from 54 tests.

About plugin

  • Plugin page: mowomo-bloques
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2019
  • Latest release: Nov 20, 2020
  • Number of updates: 24
  • Update frequency: every 27.2 days
  • Top authors: Pedromcj95 (91.67%)mowomo (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼13.12ms] Passed 4 tests

An overview of server-side resources used by mowomo bloques
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.41 ▼1.06
Dashboard /wp-admin3.34 ▲0.0448.35 ▼2.52
Posts /wp-admin/edit.php3.39 ▲0.0447.79 ▼0.48
Add New Post /wp-admin/post-new.php4.83 ▼1.0552.63 ▼48.42
Media Library /wp-admin/upload.php3.26 ▲0.0434.53 ▲0.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by mowomo bloques
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲12713.46 ▼0.788.93 ▲6.9842.95 ▲0.25
Dashboard /wp-admin2,198 ▲215.66 ▼0.0289.78 ▼4.3539.33 ▼5.22
Posts /wp-admin/edit.php2,106 ▲32.01 ▼0.0238.87 ▼2.7232.53 ▼3.08
Add New Post /wp-admin/post-new.php6,206 ▲4,68020.38 ▼2.91971.98 ▲291.5940.65 ▼13.56
Media Library /wp-admin/upload.php1,406 ▲34.22 ▲0.02105.87 ▲2.2445.39 ▲0.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

mowomo-bloques/generador-mowomo-bloques.php 85% from 13 tests

The primary PHP file in "mowomo bloques" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("mowomo-bloques.php" instead of "generador-mowomo-bloques.php")

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
There were no executable files found in this plugin665 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3184280361
CSS3242228
PHP1111576

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
2 PNG files occupy 0.43MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/assets/logo-mowomo-ameba-256x256.png24.53KB11.44KB▼ 53.35%
assets/screenshot-1.png420.17KB129.46KB▼ 69.19%