79% lemmony-companion

Code Review | Lemmony Companion

WordPress plugin Lemmony Companion scored 79% from 54 tests.

About plugin

  • Plugin page: lemmony-companion
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2023
  • Latest release: Jul 7, 2023
  • Number of updates: 14
  • Update frequency: every 15.1 days
  • Top authors: shufflehound (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 14,811 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.28ms] Passed 4 tests

This is a short check of server-side resources used by Lemmony Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.87 ▼1.58
Dashboard /wp-admin3.34 ▲0.0447.24 ▼2.66
Posts /wp-admin/edit.php3.40 ▲0.0445.33 ▼1.91
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.95 ▼14.69
Media Library /wp-admin/upload.php3.27 ▲0.0436.54 ▼1.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lemmony Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.17 ▼1.231.97 ▲0.2544.90 ▲1.45
Dashboard /wp-admin2,209 ▲214.89 ▼1.02109.77 ▲5.4142.98 ▲1.35
Posts /wp-admin/edit.php2,071 ▼181.99 ▼0.0245.25 ▲9.1632.83 ▲0.46
Add New Post /wp-admin/post-new.php6,429 ▲4,90720.88 ▼2.18914.42 ▲240.0239.23 ▼16.02
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0695.43 ▼4.1642.22 ▼2.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lemmony-companion/inc/dashboard.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/lemmony-companion/inc/import-content.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/lemmony-companion/blocks/post-featured-image-caption/render.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lemmony-companion/inc/blocks.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lemmony-companion/lemmony-companion.php:47

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: caption, block, guttenberg, svg, companion...

lemmony-companion/lemmony-companion.php Passed 13 tests

"Lemmony Companion" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
140 characters long description:
The Lemmony Companion is a companion plugin for the Lemmony theme. Adds additional block editor blocks needed for the best theme experience.

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 detected766 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP127468451
JSON600305
JavaScript6006
CSS4004

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.43
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%
Functions12
▷ Named functions866.67%
▷ Anonymous functions433.33%
Constants2
▷ Global constants2100.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