78% wp-custom-styling

Code Review | WP Custom Styling - Make Custom Design in Wordpress

WordPress plugin WP Custom Styling - Make Custom Design in Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: wp-custom-styling
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.5
  • WordPress version: 6.3.1
  • First release: May 8, 2018
  • Latest release: Aug 21, 2018
  • Number of updates: 3
  • Update frequency: every 35.3 days
  • Top authors: livertigo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.83ms] Passed 4 tests

An overview of server-side resources used by WP Custom Styling - Make Custom Design in Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.22 ▼4.36
Dashboard /wp-admin3.40 ▲0.0946.64 ▲1.74
Posts /wp-admin/edit.php3.42 ▲0.0652.63 ▲5.02
Add New Post /wp-admin/post-new.php6.33 ▲0.44102.79 ▼1.85
Media Library /wp-admin/upload.php3.32 ▲0.0935.63 ▲1.15

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Custom Styling - Make Custom Design in Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /6,935 ▲4,16413.40 ▼0.841.80 ▼0.1943.48 ▼3.60
Dashboard /wp-admin6,334 ▲4,1465.01 ▼0.87126.62 ▲14.7346.98 ▲4.71
Posts /wp-admin/edit.php6,225 ▲4,1362.32 ▲0.3343.38 ▲7.0634.75 ▲1.38
Add New Post /wp-admin/post-new.php5,649 ▲4,13521.20 ▲3.58716.41 ▲100.0837.31 ▼16.89
Media Library /wp-admin/upload.php5,519 ▲4,1374.33 ▲0.12100.29 ▲1.5740.27 ▼2.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-custom-styling/assets/app/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-styling/function.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (2.) image not found
You can take inspiration from this readme.txt

wp-custom-styling/wp-custom-styling.php Passed 13 tests

"WP Custom Styling - Make Custom Design in Wordpress" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
112 characters long description:
WP Custom Styling plugin will add custom designs to posts or pages. You can customize headings, Buttons, blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin11,994 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
CSS627434,369
SVG1002,671
Sass1434341,768
LESS1434441,758
HTML1701,183
JavaScript18383
XML100082
PHP4162080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.25MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/symbol_logo.png4.07KB1.12KB▼ 72.59%
(invalid) screenshot-1.png36.63KB0.00KB▼ 100.00%
(invalid) screenshot-2.png44.13KB0.00KB▼ 100.00%
assets/images/logo.png170.92KB5.38KB▼ 96.86%
assets/images/symbol_logo.png4.07KB1.12KB▼ 72.59%