78% wp-touch-stylesheet-addon

Code Review | Custom Stylesheet Extension for WPtouch

WordPress plugin Custom Stylesheet Extension for WPtouch scored78%from 54 tests.

About plugin

  • Plugin page: wp-touch-styleshe...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2014
  • Latest release: Dec 1, 2014
  • Number of updates: 5
  • Update frequency: every 50.6 days
  • Top authors: milesstewart88 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /6,804 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.02MB] [CPU: ▼4.55ms] Passed 4 tests

This is a short check of server-side resources used by Custom Stylesheet Extension for WPtouch
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.36 ▼2.58
Dashboard /wp-admin3.34 ▲0.0343.97 ▼5.53
Posts /wp-admin/edit.php3.39 ▲0.0350.50 ▲8.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.74 ▼12.89
Media Library /wp-admin/upload.php3.26 ▲0.0334.88 ▲2.80
Custom Stylesheet WPtouch /wp-admin/options-general.php?page=wp_touch_stylesheet_addon_settings3.2032.46

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Stylesheet Extension for WPtouch
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.64 ▼0.741.79 ▼0.3642.83 ▼1.24
Dashboard /wp-admin2,204 ▲165.82 ▲0.93107.55 ▼7.6341.50 ▼4.52
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0239.77 ▲4.7435.78 ▲0.10
Add New Post /wp-admin/post-new.php1,540 ▲723.09 ▼0.13648.31 ▼40.7658.56 ▼1.54
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.09103.59 ▼2.9245.09 ▼2.79
Custom Stylesheet WPtouch /wp-admin/options-general.php?page=wp_touch_stylesheet_addon_settings7822.0328.0526.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp_touch_stylesheet_addon_settings
    • > 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/options-general.php?page=wp_touch_stylesheet_addon_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-touch-stylesheet-addon/wp-touch-stylesheet-addon.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-touch-stylesheet-addon === )
The official readme.txt might help

wp-touch-stylesheet-addon/wp-touch-stylesheet-addon.php Passed 13 tests

The main PHP file in "Custom Stylesheet Extension for WPtouch" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Adds a custom mobile only stylesheet for WPtouch!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23556103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin