84% monoloq

Code Review | Monoloq

WordPress plugin Monoloq scored84%from 54 tests.

About plugin

  • Plugin page: monoloq
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 8, 2023
  • Latest release: Mar 24, 2023
  • Number of updates: 11
  • Update frequency: every 1.7 days
  • Top authors: maxarrich (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Monoloq
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.26 ▼0.64
Dashboard /wp-admin3.31 ▲0.0149.08 ▲3.45
Posts /wp-admin/edit.php3.36 ▲0.0151.00 ▲0.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.56 ▼0.46
Media Library /wp-admin/upload.php3.24 ▲0.0144.33 ▲9.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Monoloq
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.64 ▼0.0920.35 ▲18.7747.14 ▲2.71
Dashboard /wp-admin2,192 ▲255.59 ▼0.0989.20 ▼21.8841.67 ▼5.19
Posts /wp-admin/edit.php2,097 ▼61.98 ▲0.0141.45 ▲5.7334.95 ▼1.07
Add New Post /wp-admin/post-new.php1,531 ▲323.40 ▲0.24664.02 ▼3.2257.09 ▼2.42
Media Library /wp-admin/upload.php1,400 ▲94.15 ▼0.07108.27 ▲1.5644.36 ▲0.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/monoloq/monoloq.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

monoloq/monoloq.php Passed 13 tests

Analyzing the main PHP file in "Monoloq" version 1.0.2
86 characters long description:
Boost your sales with Monoloq's AI-powered sales assistant for your WooCommerce store.

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
Good job! No executable or dangerous file extensions detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171029

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin