90% post-by-weekday

Code Review | Post by Weekday

WordPress plugin Post by Weekday scored90%from 54 tests.

About plugin

  • Plugin page: post-by-weekday
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2021
  • Latest release: Oct 14, 2021
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: yensubldg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲190.05ms] Passed 4 tests

This is a short check of server-side resources used by Post by Weekday
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.17427.72 ▲387.20
Dashboard /wp-admin3.45 ▲0.15412.35 ▲359.02
Posts /wp-admin/edit.php3.50 ▲0.14430.67 ▲380.90
Add New Post /wp-admin/post-new.php5.94 ▲0.05107.66 ▲3.09
Media Library /wp-admin/upload.php3.32 ▲0.0956.58 ▲17.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
post_by_weekday_1
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post by Weekday
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲9914.63 ▲0.281.71 ▲0.0542.33 ▼0.98
Dashboard /wp-admin2,276 ▲955.66 ▼0.0290.70 ▼10.3839.76 ▼5.20
Posts /wp-admin/edit.php2,181 ▲811.97 ▼0.0737.47 ▼2.8438.79 ▲6.24
Add New Post /wp-admin/post-new.php1,607 ▲3922.74 ▲4.40658.14 ▲24.8857.61 ▲5.83
Media Library /wp-admin/upload.php1,481 ▲814.25 ▼0.00104.32 ▼1.6246.71 ▲2.62

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 did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • post_by_weekday_1

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: post, post by weekday, datetime publish, post by day

post-by-weekday/post-by-weekday.php 92% from 13 tests

Analyzing the main PHP file in "Post by Weekday" version 2.1.0
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Good job! No executable or dangerous file extensions detected138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11529137
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin