78% daycounts-up-to-date

Code Review | DayCounts Up To Date

WordPress plugin DayCounts Up To Date scored78%from 54 tests.

About plugin

  • Plugin page: daycounts-up-to-date
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Nov 2, 2020
  • Number of updates: 15
  • Update frequency: every 52.1 days
  • Top authors: daycounts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.76ms] Passed 4 tests

A check of server-side resources used by DayCounts Up To Date
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0548.13 ▲3.96
Dashboard /wp-admin3.36 ▲0.0544.69 ▼8.18
Posts /wp-admin/edit.php3.47 ▲0.1148.40 ▼2.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.99 ▼2.24
Media Library /wp-admin/upload.php3.28 ▲0.0535.46 ▲1.87
DayCounts /wp-admin/options-general.php?page=uptodate3.2436.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for DayCounts Up To Date
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼1.081.69 ▼0.2137.97 ▼7.87
Dashboard /wp-admin2,210 ▲224.84 ▼0.21108.31 ▼42.6438.75 ▼17.01
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0739.74 ▲4.4536.95 ▲3.99
Add New Post /wp-admin/post-new.php1,517 ▲317.63 ▼0.19644.14 ▼48.9754.62 ▲3.00
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0798.74 ▲1.8842.55 ▼0.46
DayCounts /wp-admin/options-general.php?page=uptodate8032.0229.9533.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=uptodate
    • > Notice in wp-content/plugins/daycounts-up-to-date/admin/partials/uptodate-admin-display.php+28
    Trying to access array offset on value of type bool

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
Please fix the following
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 124
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 125
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 123
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 122
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 122
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 126
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/misc.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 123
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 122
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 124
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 126

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 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: plugins, up to date, updates

daycounts-up-to-date/uptodate.php 77% from 13 tests

The primary PHP file in "DayCounts Up To Date" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daycounts-up-to-date.php" instead of "uptodate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin324 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10146440324

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2580.65%
▷ Protected methods26.45%
▷ Private methods412.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected