10% wp-css-version-history

Code Review | WP CSS Version History

WordPress plugin WP CSS Version History scored10%from 54 tests.

About plugin

  • Plugin page: wp-css-version-hi...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: May 14, 2018
  • Latest release: May 29, 2018
  • Number of updates: 10
  • Update frequency: every 1.5 days
  • Top authors: briankeith68 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,101 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▼0.89MB] [CPU: ▼36.30ms] Passed 4 tests

Server-side resources used by WP CSS Version History
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.04 ▼7.02
Dashboard /wp-admin3.05 ▼0.2526.97 ▼23.98
Posts /wp-admin/edit.php3.05 ▼0.3027.19 ▼30.14
Add New Post /wp-admin/post-new.php3.05 ▼2.8327.24 ▼78.21
Media Library /wp-admin/upload.php3.05 ▼0.1822.69 ▼12.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP CSS Version History
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.34 ▼0.221.83 ▲0.2746.09 ▲5.60
Dashboard /wp-admin2,196 ▲165.57 ▲0.0388.45 ▼8.0038.50 ▼3.25
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0141.01 ▼0.0435.56 ▼3.00
Add New Post /wp-admin/post-new.php1,531 ▲323.02 ▼0.05629.93 ▼12.5169.63 ▲20.14
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0195.40 ▼12.3940.93 ▼4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-css-version-history/public/partials/wp-css-version-history-public-display.php
    • > /wp-content/plugins/wp-css-version-history/admin/partials/wp-css-version-history-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: css team, css history, css verion history, css team editor, css verion control...

wp-css-version-history/wp-css-version-history.php Passed 13 tests

The primary PHP file in "WP CSS Version History" version 1.0.9 is used by WordPress to initiate all plugin functionality
86 characters long description:
A Custom CSS file editor using CSS versioning and CSS post lock for team collaboration

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin300 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12253589267
CSS31027
JavaScript28416

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.71
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin