84% wp-chrono

Code Review | WP Chrono

WordPress plugin WP Chrono scored84%from 54 tests.

About plugin

  • Plugin page: wp-chrono
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: Oct 21, 2018
  • Number of updates: 34
  • Update frequency: every 27.1 days
  • Top authors: milan.latinovic (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

80+ active /2,720 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼12.48ms] Passed 4 tests

This is a short check of server-side resources used by WP Chrono
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.82 ▼7.55
Dashboard /wp-admin3.35 ▲0.0049.62 ▼15.86
Posts /wp-admin/edit.php3.40 ▲0.0445.48 ▼4.62
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.78 ▼21.90
Media Library /wp-admin/upload.php3.27 ▲0.0444.03 ▲6.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Chrono
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.13 ▼0.192.21 ▲0.4745.52 ▲1.70
Dashboard /wp-admin2,218 ▲415.62 ▲0.1096.17 ▼18.5846.48 ▼12.96
Posts /wp-admin/edit.php2,124 ▲242.11 ▲0.1436.71 ▼1.0537.92 ▲2.70
Add New Post /wp-admin/post-new.php1,544 ▲723.61 ▲0.44673.19 ▲3.5268.69 ▲16.83
Media Library /wp-admin/upload.php1,423 ▲234.11 ▼0.07115.29 ▲14.6845.29 ▲0.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 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 current_time() in wp-content/plugins/wp-chrono/includes/WPChrono.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/wp-chrono/uninstall.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: date, time, show time, content, post...

wp-chrono/wp-chrono.php 92% from 13 tests

This is the main PHP file of "WP Chrono" version 1.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin247 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46245162
JavaScript28346
CSS1131039

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin