78% microplugins

Code Review | Microplugins

WordPress plugin Microplugins scored78%from 54 tests.

About plugin

  • Plugin page: microplugins
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Oct 2, 2016
  • Number of updates: 11
  • Update frequency: every 1.5 days
  • Top authors: andaniel05 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,034 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 gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.56ms] Passed 4 tests

An overview of server-side resources used by Microplugins
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1736.33 ▼5.74
Dashboard /wp-admin3.47 ▲0.1646.28 ▲0.57
Posts /wp-admin/edit.php3.58 ▲0.2249.58 ▲1.61
Add New Post /wp-admin/post-new.php6.10 ▲0.2295.15 ▼2.69
Media Library /wp-admin/upload.php3.38 ▲0.1634.65 ▲2.98
Categories /wp-admin/edit-tags.php?taxonomy=microplugin-category&post_type=microplugin3.3834.17
Add New /wp-admin/post-new.php?post_type=microplugin3.4749.52
Tags /wp-admin/edit-tags.php?taxonomy=microplugin-tag&post_type=microplugin3.3834.32
Recompile All /wp-admin/edit.php?post_type=microplugin&page=recompile-all3.3531.95
All Microplugins /wp-admin/edit.php?post_type=microplugin3.4335.84

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Microplugins
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲13213.21 ▼1.084.49 ▲2.5640.84 ▲0.14
Dashboard /wp-admin2,242 ▲514.82 ▼0.06116.91 ▲9.6243.96 ▲1.02
Posts /wp-admin/edit.php2,131 ▲452.00 ▼0.0140.15 ▼0.7640.30 ▲1.47
Add New Post /wp-admin/post-new.php1,808 ▲27523.63 ▲0.35617.29 ▲22.2735.20 ▼16.02
Media Library /wp-admin/upload.php1,421 ▲334.20 ▲0.0995.73 ▼10.8243.46 ▼5.73
Categories /wp-admin/edit-tags.php?taxonomy=microplugin-category&post_type=microplugin1,3012.1426.9428.45
Add New /wp-admin/post-new.php?post_type=microplugin2,1295.24116.8668.74
Tags /wp-admin/edit-tags.php?taxonomy=microplugin-tag&post_type=microplugin1,2702.1427.7926.39
Recompile All /wp-admin/edit.php?post_type=microplugin&page=recompile-all8012.0322.3727.63
All Microplugins /wp-admin/edit.php?post_type=microplugin1,1081.9530.1131.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/microplugins/microplugins.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=microplugin
    • > Console-api (warning) in wp-content/plugins/microplugins/assets/vendor/ace/ace.js?ver=6.3.1+0:51505
    Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message
    • > GET request to /wp-admin/post-new.php?post_type=microplugin
    • > Network (severe)
    wp-content/plugins/microplugins/assets/vendor/ace/worker-php.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png Crear nuevo microplugin.), #2 (screenshot-2.png Múltiples estilos en el editor de código.), #3 (screenshot-3.png Resultado después de publicar la entrada.), #4 (screenshot-4.png Advertencias en el editor de código.), #5 (screenshot-5.png Señalamientos de error en el editor de código y microplugin desactivado automáticamente.)
Please take inspiration from this readme.txt

microplugins/microplugins.php Passed 13 tests

"Microplugins" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Permite añadir funcionalidad al sitio evitando la modificación de los archivos del tema activo.

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
No dangerous file extensions were detected561 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103195438
JavaScript37170104
CSS15019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1995.00%
▷ Public methods1785.00%
▷ Protected methods315.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.55MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png54.40KB29.18KB▼ 46.36%
assets/screenshot-1.png52.28KB29.53KB▼ 43.51%
screenshot-3.png75.52KB30.74KB▼ 59.29%
screenshot-2.png52.09KB29.66KB▼ 43.07%
assets/screenshot-3.png75.52KB30.74KB▼ 59.29%