90% pryc-wp-add-timestamp-to-stylecss-link

Code Review | PRyC WP: Add timestamp to style.css link

WordPress plugin PRyC WP: Add timestamp to style.css link scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-add-times...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Jun 20, 2023
  • Number of updates: 17
  • Update frequency: every 183.9 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,019 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
Install script ran successfully

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

A check of server-side resources used by PRyC WP: Add timestamp to style.css link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.82 ▼3.66
Dashboard /wp-admin3.31 ▲0.0149.05 ▲0.95
Posts /wp-admin/edit.php3.36 ▲0.0148.44 ▼3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.13 ▼6.95
Media Library /wp-admin/upload.php3.23 ▲0.0137.66 ▲2.96

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for PRyC WP: Add timestamp to style.css link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.25 ▼1.041.64 ▼0.3638.99 ▼7.96
Dashboard /wp-admin2,209 ▲215.85 ▲0.9599.48 ▼18.2539.86 ▼0.95
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0735.75 ▼1.6735.67 ▲2.99
Add New Post /wp-admin/post-new.php1,534 ▲123.16 ▼0.21669.39 ▲50.4866.41 ▲15.88
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.06100.30 ▼4.2443.14 ▼3.25

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: timestamp, stylecss, style, wordpress, languages

pryc-wp-add-timestamp-to-stylecss-link/pryc-wp-add-timestamp-to-stylecss-link.php Passed 13 tests

The entry point to "PRyC WP: Add timestamp to style.css link" version 1.0.4 is a PHP file that has certain tags in its header comment area
118 characters long description:
PRyC Wordpress: Add timestamp to style.css link (eg: style.css?1412863646&#038). Also works with child theme style.css

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
No dangerous file extensions were detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin