84% display-posts-date-view

Code Review | Display Posts - Date View

WordPress plugin Display Posts - Date View scored84%from 54 tests.

About plugin

  • Plugin page: display-posts-dat...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2019
  • Latest release: May 14, 2019
  • Number of updates: 6
  • Update frequency: every 98.0 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /2,523 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
Installer ran successfully

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

Analyzing server-side resources used by Display Posts - Date View
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.50 ▼14.20
Dashboard /wp-admin3.32 ▼0.0245.01 ▼14.57
Posts /wp-admin/edit.php3.37 ▲0.0246.94 ▲2.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.86 ▼10.20
Media Library /wp-admin/upload.php3.25 ▲0.0236.24 ▲1.53

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

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

Browser metrics Passed 4 tests

Display Posts - Date View: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.461.56 ▼0.1741.07 ▼2.03
Dashboard /wp-admin2,203 ▲155.83 ▲0.7993.23 ▼22.4038.46 ▼5.12
Posts /wp-admin/edit.php2,089 ▲32.00 ▲0.0135.70 ▲1.8531.34 ▼5.03
Add New Post /wp-admin/post-new.php1,533 ▲1023.11 ▼0.03680.21 ▲69.8655.55 ▲4.73
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0395.98 ▼1.7341.08 ▼1.61

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/display-posts-date-view/display-posts-date-view.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: posts, year, page, query, date...

display-posts-date-view/display-posts-date-view.php Passed 13 tests

The main PHP script in "Display Posts - Date View" version 1.0.0 is automatically included on every request by WordPress
84 characters long description:
Display content broken down by month or year. You must have Display Posts installed.

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
Success! There were no dangerous files found in this plugin81 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1205258
Markdown113023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin