88% skins

Code Review | Skins

WordPress plugin Skins scored 88% from 54 tests.

About plugin

  • Plugin page: skins
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.8.1
  • WordPress version: 5.8.1
  • First release: Apr 4, 2013
  • Latest release: Jan 30, 2014
  • Number of updates: 3
  • Update frequency: every 101.4 days
  • Top authors: ryanve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 846 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Skins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1541.31 ▲23.19
Dashboard /wp-admin3.11 ▲0.0545.41 ▼0.15
Posts /wp-admin/edit.php3.16 ▲0.0540.31 ▼4.28
Add New Post /wp-admin/post-new.php5.46 ▲0.0387.88 ▼567.67
Media Library /wp-admin/upload.php3.05 ▲0.0532.43 ▲3.74
Skins /wp-admin/themes.php?page=skins3.0027.43

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.69 ▼0.0511.33 ▲0.8548.94 ▲3.65
Dashboard /wp-admin2,978 ▲505.90 ▼0.06139.94 ▼11.16107.50 ▼2.02
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0164.21 ▼2.8890.05 ▼1.38
Add New Post /wp-admin/post-new.php1,503 ▲518.50 ▼0.35355.69 ▼28.11108.25 ▼2.69
Media Library /wp-admin/upload.php1,815 ▲85.05 ▲0.04155.48 ▲7.89122.29 ▼2.29
Skins /wp-admin/themes.php?page=skins1,0412.1050.2067.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/themes.php?page=skins
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=skins
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/skins/skins.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === skins === )
The official readme.txt is a good inspiration

skins/skins.php Passed 13 tests

Analyzing the main PHP file in "Skins" version 1.0.3
60 characters long description:
Add custom CSS classes to your markup for usage in your CSS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131175

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.37
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%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.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
There are no PNG files in this plugin