78% indemandly

Code Review | Indemandly

WordPress plugin Indemandly scored 78% from 54 tests.

About plugin

  • Plugin page: indemandly
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: Jun 29, 2018
  • Number of updates: 21
  • Update frequency: every 8.1 days
  • Top authors: cavin smith (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 1,274 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.38ms] Passed 4 tests

This is a short check of server-side resources used by Indemandly
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.53 ▼2.28
Dashboard /wp-admin3.33 ▲0.0244.82 ▼1.31
Posts /wp-admin/edit.php3.38 ▲0.0245.26 ▼1.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.28 ▼21.97
Media Library /wp-admin/upload.php3.25 ▲0.0234.07 ▼3.62
Indemandly /wp-admin/options-general.php?page=indemandly/wp-indemandly-options.php3.1928.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Indemandly
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10414.98 ▲0.3942.80 ▲41.1442.24 ▲2.27
Dashboard /wp-admin2,210 ▲224.87 ▼1.06103.02 ▲1.0438.79 ▼1.22
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0135.43 ▼5.3833.10 ▼2.46
Add New Post /wp-admin/post-new.php1,536 ▲223.45 ▲0.31683.88 ▲4.0967.95 ▲13.68
Media Library /wp-admin/upload.php1,395 ▲134.21 ▼0.09101.54 ▼9.9944.00 ▼5.03
Indemandly /wp-admin/options-general.php?page=indemandly/wp-indemandly-options.php7972.0322.9328.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=indemandly/wp-indemandly-options.php
    • > Notice in wp-content/plugins/indemandly/wp-indemandly-options.php+73
    Undefined index: submit

SRP 50% 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 take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/indemandly/wp-indemandly.php
    • > /wp-content/plugins/indemandly/wp-indemandly-add.php
    • > /wp-content/plugins/indemandly/wp-indemandly-options.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

indemandly/wp-indemandly.php 85% from 13 tests

"Indemandly" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("indemandly.php" instead of "wp-indemandly.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin173 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32214173

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity7.67
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin