84% wp-stardate

Code Review | wp-stardate

WordPress plugin wp-stardate scored 84% from 54 tests.

About plugin

  • Plugin page: wp-stardate
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: May 9, 2015
  • Latest release: May 30, 2019
  • Number of updates: 24
  • Update frequency: every 61.8 days
  • Top authors: doddo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.00ms] Passed 4 tests

Analyzing server-side resources used by wp-stardate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.34 ▲3.78
Dashboard /wp-admin3.38 ▲0.0848.11 ▼1.28
Posts /wp-admin/edit.php3.50 ▲0.1443.51 ▼6.50
Add New Post /wp-admin/post-new.php5.98 ▲0.09106.02 ▲11.35
Media Library /wp-admin/upload.php3.30 ▲0.0838.70 ▼0.00
Stardate /wp-admin/options-general.php?page=stardate3.2733.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
stardate_prefix
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
stardate_style

Browser metrics Passed 4 tests

wp-stardate: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.41 ▲0.031.91 ▲0.2644.66 ▲3.25
Dashboard /wp-admin2,213 ▲285.90 ▲0.04100.76 ▼7.3438.28 ▼1.24
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0536.13 ▼1.6632.84 ▼3.94
Add New Post /wp-admin/post-new.php1,538 ▲523.20 ▲0.08597.66 ▼17.9368.56 ▲18.86
Media Library /wp-admin/upload.php1,386 ▼24.17 ▼0.12100.38 ▼13.5240.93 ▼6.18
Stardate /wp-admin/options-general.php?page=stardate9182.1923.7628.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-stardate/stardate.php
    • > /wp-content/plugins/wp-stardate/src/options.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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: dates, stardate

wp-stardate/stardate.php 92% from 13 tests

The main PHP script in "wp-stardate" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-stardate.php" instead of "stardate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected281 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP274150281

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions21
▷ Named functions21100.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
There are no PNG files in this plugin