10% day-spelled

Code Review | Day Spelled

WordPress plugin Day Spelled scored10%from 54 tests.

About plugin

  • Plugin page: day-spelled
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2015
  • Latest release: Mar 31, 2021
  • Number of updates: 30
  • Update frequency: every 65.2 days
  • Top authors: Living Fossil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,449 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/day-spelled/day-spelled.php+35
    Undefined variable: wp_version

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.39ms] Passed 4 tests

Server-side resources used by Day Spelled
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.09 ▼11.27
Dashboard /wp-admin3.36 ▲0.0544.18 ▼10.58
Posts /wp-admin/edit.php3.41 ▲0.0545.44 ▼1.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.70 ▼2.36
Media Library /wp-admin/upload.php3.28 ▲0.0535.07 ▲0.82
Day Spelled /wp-admin/options-general.php?page=lf-day-spelled-adm3.2229.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Day Spelled
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.26 ▼1.391.63 ▼0.3540.88 ▼3.54
Dashboard /wp-admin2,213 ▲224.84 ▼0.0696.09 ▼21.1639.51 ▼8.18
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0138.83 ▲1.9735.83 ▼3.61
Add New Post /wp-admin/post-new.php1,517 ▼617.87 ▼5.32593.99 ▼74.3761.57 ▲7.57
Media Library /wp-admin/upload.php1,392 ▲134.29 ▲0.1292.99 ▼11.7042.37 ▼2.69
Day Spelled /wp-admin/options-general.php?page=lf-day-spelled-adm9642.0224.0125.65

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=lf-day-spelled-adm
    • > Notice in wp-content/plugins/day-spelled/day-spelled-help.php+20
    Undefined variable: des

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/day-spelled/day-spelled-help.php:226
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/day-spelled/localization.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: spell day, insert date, day name, current date, translate date...

day-spelled/day-spelled.php 92% from 13 tests

The main PHP script in "Day Spelled" version 1.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

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
Good job! No executable or dangerous file extensions detected745 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File3114115419
PHP51438326

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions15
▷ Named functions15100.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