84% lorem-expert-help

Code Review | Lorem: Expert Website Help

WordPress plugin Lorem: Expert Website Help scored84%from 54 tests.

About plugin

  • Plugin page: lorem-expert-help
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: May 10, 2019
  • Number of updates: 26
  • Update frequency: every 27.0 days
  • Top authors: loremtechnologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,246 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.00MB] [CPU: ▼2.56ms] Passed 4 tests

An overview of server-side resources used by Lorem: Expert Website Help
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.17 ▲3.51
Dashboard /wp-admin3.31 ▲0.0152.59 ▲2.08
Posts /wp-admin/edit.php3.36 ▲0.0044.94 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.09 ▼5.12
Media Library /wp-admin/upload.php3.23 ▲0.0032.96 ▼4.44

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Lorem: Expert Website Help
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.14 ▼0.441.94 ▲0.0245.59 ▲1.27
Dashboard /wp-admin2,192 ▲125.57 ▼0.0494.00 ▲2.2545.11 ▲2.45
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0333.25 ▼3.4736.79 ▼2.01
Add New Post /wp-admin/post-new.php1,535 ▲918.39 ▼4.71661.33 ▼14.0271.63 ▲19.51
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0498.90 ▼0.2043.48 ▲1.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lorem-expert-help/lorem-expert-help.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

lorem-expert-help/lorem-expert-help.php 92% from 13 tests

This is the main PHP file of "Lorem: Expert Website Help" version 0.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected43 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4243643

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected