78% cssbyua

Code Review | CSSbyua

WordPress plugin CSSbyua scored78%from 54 tests.

About plugin

  • Plugin page: cssbyua
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-5.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2019
  • Latest release: May 4, 2019
  • Number of updates: 8
  • Update frequency: every 2.1 days
  • Top authors: thomasbonsirven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,087 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.01ms] Passed 4 tests

An overview of server-side resources used by CSSbyua
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0529.72 ▼11.76
Dashboard /wp-admin3.34 ▲0.0352.09 ▼1.50
Posts /wp-admin/edit.php3.39 ▲0.0350.40 ▲2.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.00 ▼1.35
Media Library /wp-admin/upload.php3.26 ▲0.0340.49 ▲3.65
cssbyua /wp-admin/themes.php?page=theme_options3.2033.65

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/cssbyua/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CSSbyua
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6013.20 ▼1.554.57 ▲2.8045.25 ▼3.46
Dashboard /wp-admin2,222 ▲165.81 ▲0.95106.35 ▲3.0238.15 ▼6.57
Posts /wp-admin/edit.php2,104 ▲72.04 ▼0.0135.71 ▼2.0037.07 ▼3.05
Add New Post /wp-admin/post-new.php1,559 ▲2718.48 ▼4.66647.62 ▲15.6656.77 ▲11.41
Media Library /wp-admin/upload.php1,404 ▲44.25 ▼0.0198.05 ▼4.2141.67 ▼6.19
cssbyua /wp-admin/themes.php?page=theme_options8742.1424.8827.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=theme_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=theme_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=theme_options
    • > User deprecated in wp-includes/functions.php+5453
    Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=theme_options
    • > Notice in wp-content/plugins/cssbyua/cssbyua.php+120
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cssbyua/cssbyua.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: universal android and ios, browser, development, css

cssbyua/cssbyua.php Passed 13 tests

"CSSbyua" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
depending on the browser, change the css. Project created for Mobile css and inject css on android application.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222998
CSS2131276
JavaScript14013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin