84% starlit

Code Review | Starlit

WordPress plugin Starlit scored84%from 54 tests.

About plugin

  • Plugin page: starlit
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2021
  • Latest release: Oct 22, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: engramium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Starlit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.54 ▼2.88
Dashboard /wp-admin3.31 ▲0.0143.97 ▼8.86
Posts /wp-admin/edit.php3.36 ▲0.0145.63 ▼4.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.77 ▼8.36
Media Library /wp-admin/upload.php3.23 ▲0.0137.05 ▲3.42

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Starlit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▼0.031.59 ▼0.0941.95 ▲3.86
Dashboard /wp-admin2,198 ▲335.61 ▼0.0183.32 ▼18.4536.64 ▼13.23
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0035.91 ▼1.9436.12 ▲2.20
Add New Post /wp-admin/post-new.php1,526 ▼923.31 ▲5.13671.63 ▲33.2460.92 ▲0.88
Media Library /wp-admin/upload.php1,394 ▼94.22 ▼0.0095.75 ▼3.2043.20 ▲0.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/starlit/starlit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: badges, badge, author, comments

starlit/starlit.php Passed 13 tests

Analyzing the main PHP file in "Starlit" version 0.0.1
60 characters long description:
Displays a user badge next to the author's name on comments.

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 plugin75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1113140
CSS14535

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.41
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin