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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 35.70 ▼6.20 |
Dashboard /wp-admin | 3.40 ▲0.09 | 44.79 ▲0.58 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.73 ▼4.61 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.50 ▼9.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.20 | 1.66 ▼0.25 | 39.73 ▼3.56 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.02 | 106.84 ▲4.51 | 40.52 ▼2.80 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.09 | 39.23 ▲0.32 | 37.31 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.53 ▼5.88 | 645.92 ▲25.41 | 51.77 ▲2.45 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.02 | 100.24 ▼0.61 | 42.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 129 | 115 | 435 |
JSON | 1 | 0 | 0 | 6 |
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 code | 0.46 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 10 | 37.04% |
▷ Protected methods | 17 | 62.96% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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