89% stars-at-night

Code Review | The Stars at Night

WordPress plugin The Stars at Night scored 89% from 54 tests.

About plugin

  • Plugin page: stars-at-night
  • Plugin version: 1.9.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Dec 11, 2016
  • Latest release: Sep 12, 2021
  • Number of updates: 57
  • Update frequency: every 30.4 days
  • Top authors: stleary (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 4,819 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▼1.85ms] Passed 4 tests

Analyzing server-side resources used by The Stars at Night
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2944.31 ▲0.97
Dashboard /wp-admin3.66 ▲0.3544.69 ▼6.01
Posts /wp-admin/edit.php3.71 ▲0.3553.03 ▲7.37
Add New Post /wp-admin/post-new.php6.17 ▲0.2985.39 ▼1.84
Media Library /wp-admin/upload.php3.52 ▲0.2934.77 ▼0.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by The Stars at Night
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.27 ▼1.034.36 ▲2.1643.63 ▼1.37
Dashboard /wp-admin2,211 ▲224.84 ▼0.0997.26 ▼14.9737.44 ▼9.91
Posts /wp-admin/edit.php2,094 ▲52.03 ▲0.0336.92 ▲2.1534.66 ▲0.59
Add New Post /wp-admin/post-new.php1,530 ▼423.39 ▲0.03664.27 ▲71.5857.12 ▲0.77
Media Library /wp-admin/upload.php1,393 ▲24.22 ▲0.0396.60 ▼3.5345.67 ▲2.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Screenshots: Add a description for screenshot #4 in stars-at-night/assets to your readme.txt
The official readme.txt might help

stars-at-night/stars-at-night.php Passed 13 tests

"The Stars at Night" version 1.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
A WordPress plugin to display astronomical information

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,447 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP132029551,372
CSS1133041
Markdown112034

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.91
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods66
▷ Static methods1015.15%
▷ Public methods3756.06%
▷ Protected methods00.00%
▷ Private methods2943.94%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin