84% between-date-page-list

Code Review | Date Wise Page List

WordPress plugin Date Wise Page List scored84%from 54 tests.

About plugin

  • Plugin page: between-date-page...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 26, 2017
  • Latest release: Feb 26, 2017
  • Number of updates: 20
  • Update frequency: every 0.1 days
  • Top authors: bhaveshkhadodara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /529 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.00MB] [CPU: ▼13.14ms] Passed 4 tests

This is a short check of server-side resources used by Date Wise Page List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.18 ▲0.23
Dashboard /wp-admin3.31 ▼0.0351.58 ▼17.24
Posts /wp-admin/edit.php3.36 ▲0.0144.91 ▼9.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.38 ▼25.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.80 ▲0.33

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Date Wise Page List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.38 ▼0.042.09 ▲0.4543.19 ▲2.61
Dashboard /wp-admin2,221 ▲475.60 ▲0.0185.65 ▼5.9936.68 ▼9.71
Posts /wp-admin/edit.php2,126 ▲232.04 ▲0.0936.74 ▼6.0234.87 ▼3.31
Add New Post /wp-admin/post-new.php1,557 ▲3123.15 ▼0.31648.78 ▼8.5260.58 ▲4.58
Media Library /wp-admin/upload.php1,426 ▲264.26 ▲0.0399.70 ▼10.2443.85 ▼1.70

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/between-date-page-list/between-date-page-list.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: csv, date, page, generate, admin...

between-date-page-list/between-date-page-list.php Passed 13 tests

"Date Wise Page List" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
For generate list of pages based on staring and ending dates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin776 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2113116510
CSS163155
PHP1148111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image/csv.png2.66KB2.39KB▼ 10.26%