90% wp-cssdeck

Code Review | CSSDeck

WordPress plugin CSSDeck scored 90% from 54 tests.

About plugin

  • Plugin page: wp-cssdeck
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Feb 3, 2018
  • Number of updates: 10
  • Update frequency: every 63.3 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.46ms] Passed 4 tests

This is a short check of server-side resources used by CSSDeck
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.34 ▼15.76
Dashboard /wp-admin3.31 ▲0.0046.81 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0046.84 ▲1.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.05 ▼0.31
Media Library /wp-admin/upload.php3.23 ▲0.0034.09 ▼0.37

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for CSSDeck
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.33 ▼1.051.75 ▼0.2543.78 ▼1.10
Dashboard /wp-admin2,206 ▲245.77 ▼0.07112.96 ▲9.8939.67 ▼2.83
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0346.76 ▲9.8538.12 ▼1.73
Add New Post /wp-admin/post-new.php1,533 ▲1923.51 ▲5.91595.45 ▼1.8148.85 ▼5.09
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0194.47 ▼7.5241.43 ▼2.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: css3, html, css, js, embed...

wp-cssdeck/wp-cssdeck.php Passed 13 tests

This is the main PHP file of "CSSDeck" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Embed HTML5, CSS3, JS demos and codecasts from CSSDeck.com into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin39 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4264839

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.35KB7.27KB▼ 70.13%
screenshot-2.png43.86KB12.88KB▼ 70.64%