84% wp-stylus-processor

Code Review | Wp Stylus Processor

WordPress plugin Wp Stylus Processor scored84%from 54 tests.

About plugin

  • Plugin page: wp-stylus-processor
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Jul 2, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: tndavide (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /842 total downloads

Benchmarks

Plugin footprint 82% from 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.09MB] [CPU: ▼4.94ms] Passed 4 tests

This is a short check of server-side resources used by Wp Stylus Processor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0935.70 ▼6.20
Dashboard /wp-admin3.40 ▲0.0944.79 ▲0.58
Posts /wp-admin/edit.php3.51 ▲0.1544.73 ▼4.61
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.50 ▼9.52
Media Library /wp-admin/upload.php3.32 ▲0.0936.28 ▲1.59

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

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/wp-stylus-processor/" and "wp-content/uploads/"
    • (new file) wp-content/stylus_change_logs/.empty
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Wp Stylus Processor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.201.66 ▼0.2539.73 ▼3.56
Dashboard /wp-admin2,206 ▲185.90 ▲0.02106.84 ▲4.5140.52 ▼2.80
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0939.23 ▲0.3237.31 ▼0.25
Add New Post /wp-admin/post-new.php1,514 ▼1917.53 ▼5.88645.92 ▲25.4151.77 ▲2.45
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.02100.24 ▼0.6142.26 ▼1.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/wp-stylus-processor/wp-stylus-processor.php:176

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-stylus-processor === )
You can look at the official readme.txt

wp-stylus-processor/wp-stylus-processor.php Passed 13 tests

"Wp Stylus Processor" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
107 characters long description:
A Plugin to detect when stylus files have been changed anywhere in the current theme and then process them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected441 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3129115435
JSON1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity37.00
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods1037.04%
▷ Protected methods1762.96%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin