83% callback-for-monarch-by-logic-hop

Code Review | Callback for Monarch by Logic Hop

WordPress plugin Callback for Monarch by Logic Hop scored83%from 54 tests.

About plugin

  • Plugin page: callback-for-mona...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Callback for Monarch by Logic Hop
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.05 ▼2.41
Dashboard /wp-admin3.32 ▲0.0147.90 ▼2.22
Posts /wp-admin/edit.php3.37 ▲0.0150.53 ▼1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.70 ▼7.70
Media Library /wp-admin/upload.php3.24 ▲0.0138.09 ▲2.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Callback for Monarch by Logic Hop
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲13613.79 ▼0.358.13 ▲5.6542.63 ▲0.02
Dashboard /wp-admin2,195 ▲155.52 ▼0.1485.85 ▼7.0441.36 ▲0.47
Posts /wp-admin/edit.php2,079 ▼212.01 ▲0.0435.17 ▼0.9632.99 ▼0.27
Add New Post /wp-admin/post-new.php1,526 ▼023.76 ▲0.53680.37 ▲72.7452.35 ▼14.25
Media Library /wp-admin/upload.php1,403 ▲64.12 ▼0.03102.29 ▼4.2543.56 ▲2.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/callback-for-monarch-by-logic-hop/logichop-monarch-callback.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: share, callback, javascript, social, sharing...

callback-for-monarch-by-logic-hop/logichop-monarch-callback.php 69% from 13 tests

The entry point to "Callback for Monarch by Logic Hop" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("callback-for-monarch-by-logic-hop.php" instead of "logichop-monarch-callback.php")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected38 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2134721
JavaScript30117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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