84% seos-custom-css

Code Review | Seos Custom CSS

WordPress plugin Seos Custom CSS scored84%from 54 tests.

About plugin

  • Plugin page: seos-custom-css
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Sep 19, 2016
  • Latest release: Sep 20, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Seos Custom CSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.26 ▼4.47
Dashboard /wp-admin3.31 ▼0.0344.25 ▼19.38
Posts /wp-admin/edit.php3.36 ▲0.0146.06 ▲2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.16 ▼5.77
Media Library /wp-admin/upload.php3.23 ▲0.0135.67 ▲1.23

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Seos Custom CSS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.47 ▼0.091.60 ▼0.4539.08 ▼6.79
Dashboard /wp-admin2,223 ▲354.91 ▼0.97104.80 ▼12.4683.92 ▲39.76
Posts /wp-admin/edit.php2,106 ▲171.99 ▲0.0237.80 ▲1.1935.07 ▲3.43
Add New Post /wp-admin/post-new.php1,543 ▲718.18 ▼5.13731.52 ▲67.5555.70 ▲1.51
Media Library /wp-admin/upload.php1,408 ▲204.17 ▼0.1595.28 ▼3.8976.78 ▲32.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seos-custom-css/seos-custom-css.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image missing
You can look at the official readme.txt

seos-custom-css/seos-custom-css.php Passed 13 tests

The principal PHP file in "Seos Custom CSS" v. 1.0.1 is loaded by WordPress automatically on each request
101 characters long description:
Seos Custom CSS is easy to use. Seos Custom CSS Plugin add custom CSS styling to your WordPress Site.

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
Everything looks great! No dangerous files found in this plugin152 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS112068
PHP1211249
PO File16735

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png11.25KB4.39KB▼ 60.99%
images/icon.png1.58KB1.43KB▼ 9.69%
screenshot-1.png22.29KB8.04KB▼ 63.91%