83% moneda-libremente-convertible-mlc-cuba

Code Review | Moneda Libremente Convertible(MLC) - Cuba

WordPress plugin Moneda Libremente Convertible(MLC) - Cuba scored83%from 54 tests.

About plugin

  • Plugin page: moneda-libremente...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2023
  • Latest release: Apr 6, 2023
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: karmakwolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Moneda Libremente Convertible(MLC) - Cuba
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.61 ▼1.14
Dashboard /wp-admin3.31 ▲0.0154.90 ▲5.53
Posts /wp-admin/edit.php3.36 ▲0.0151.73 ▼1.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.57 ▼19.77
Media Library /wp-admin/upload.php3.23 ▲0.0137.92 ▲0.96

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Moneda Libremente Convertible(MLC) - Cuba
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.061.76 ▼0.3944.48 ▼1.88
Dashboard /wp-admin2,195 ▲185.61 ▼0.0588.15 ▲1.8543.19 ▼2.52
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0040.34 ▼3.6035.47 ▼1.15
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.24636.65 ▼0.3356.99 ▼5.86
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0798.42 ▼7.7742.98 ▼1.48

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/moneda-libremente-convertible-mlc-cuba/moneda-libremente-convertible-cuba.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Contributors: Please add at least on tag
The official readme.txt might help

moneda-libremente-convertible-mlc-cuba/moneda-libremente-convertible-cuba.php 92% from 13 tests

The primary PHP file in "Moneda Libremente Convertible(MLC) - Cuba" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("moneda-libremente-convertible-mlc-cuba.php" instead of "moneda-libremente-convertible-cuba.php")

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
Success! There were no dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12815

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin