10% monogram

Code Review | Monogram

WordPress plugin Monogram scored 10% from 54 tests.

About plugin

  • Plugin page: monogram
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: Jan 30, 2021
  • Latest release: Jan 30, 2021
  • Number of updates: 3
  • Update frequency: every 60.7 days
  • Top authors: bdawson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 321 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/monogram/monogram.php+15
    Undefined variable: value

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.89ms] Passed 4 tests

A check of server-side resources used by Monogram
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.406.00 ▼35.56
Dashboard /wp-admin2.09 ▼1.225.64 ▼48.75
Posts /wp-admin/edit.php2.09 ▼1.276.30 ▼43.51
Add New Post /wp-admin/post-new.php2.09 ▼3.806.80 ▼95.72
Media Library /wp-admin/upload.php2.09 ▼1.156.21 ▼28.40
Monogram /wp-admin/themes.php?page=monogram2.096.45

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

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

Browser metrics Passed 4 tests

Monogram: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.151.75 ▼0.5344.40 ▼0.41
Dashboard /wp-admin2,204 ▲135.83 ▲0.94104.96 ▲0.3039.72 ▲0.90
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0636.07 ▼4.1134.29 ▼3.67
Add New Post /wp-admin/post-new.php1,522 ▼1123.15 ▼0.14626.16 ▲0.2655.33 ▼1.96
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.01101.82 ▼8.1643.91 ▼3.98
Monogram /wp-admin/themes.php?page=monogram7822.0327.6729.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/monogram/monogram.php+15
    Undefined variable: value
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • monogram
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=monogram
    • > Notice in wp-content/plugins/monogram/monogram.php+15
    Undefined variable: value
    • > GET request to /wp-admin/themes.php?page=monogram
    • > Notice in wp-content/plugins/monogram/monogram.php+15
    Undefined variable: deprecated
    • > GET request to /wp-admin/themes.php?page=monogram
    • > Notice in wp-content/plugins/monogram/monogram.php+15
    Undefined variable: autoload

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/monogram/monogram.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: text, footer, icon, html, end

monogram/monogram.php 92% from 13 tests

"Monogram" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 199 characters long)

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
Everything looks great! No dangerous files found in this plugin85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1212085

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin