89% lorim-ipsm

Code Review | Lorim Ipsm

WordPress plugin Lorim Ipsm scored 89% from 54 tests.

About plugin

  • Plugin page: lorim-ipsm
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: May 28, 2020
  • Latest release: Jun 3, 2020
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: codethrower (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 381 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: ▼1.60ms] Passed 4 tests

Server-side resources used by Lorim Ipsm
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.64 ▼0.27
Dashboard /wp-admin3.32 ▲0.0247.78 ▲1.89
Posts /wp-admin/edit.php3.37 ▲0.0148.50 ▲0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.30 ▼1.80
Media Library /wp-admin/upload.php3.24 ▲0.0134.20 ▼4.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Lorim Ipsm: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.55 ▼1.011.78 ▲0.1041.92 ▼4.56
Dashboard /wp-admin2,209 ▲235.83 ▲0.9093.10 ▼15.9038.40 ▼1.07
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0239.39 ▼1.3036.63 ▼2.50
Add New Post /wp-admin/post-new.php6,418 ▲4,89920.54 ▼2.81877.60 ▲193.1977.23 ▲14.91
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.05100.74 ▼9.5043.28 ▼3.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in lorim-ipsm/assets to your readme.txt
You can take inspiration from this readme.txt

lorim-ipsm/plugin.php 92% from 13 tests

The main PHP file in "Lorim Ipsm" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lorim-ipsm.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,403 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,123
JavaScript42253200
PHP295846
Sass35133
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin