Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲1.16ms] Passed 4 tests
Server-side resources used by AutoCHMOD
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 44.36 ▲1.88 |
Dashboard /wp-admin | 3.46 ▲0.15 | 49.78 ▼0.98 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.29 ▲3.94 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.49 ▲7.72 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.79 ▼0.22 |
Write permissions /wp-admin/tools.php?page=autochmod | 3.32 | 34.23 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
autochmod_keep_writable |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for AutoCHMOD
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.25 ▼1.15 | 1.65 ▼0.66 | 48.44 ▲0.45 |
Dashboard /wp-admin | 2,217 ▲29 | 5.84 ▲0.96 | 104.12 ▼10.36 | 40.52 ▼2.73 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.01 ▲0.00 | 47.36 ▲11.51 | 36.24 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.19 ▲4.99 | 624.27 ▲18.16 | 56.09 ▲0.87 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.18 ▼0.06 | 98.76 ▼6.74 | 42.50 ▼2.72 |
Write permissions /wp-admin/tools.php?page=autochmod | 15,591 | 3.49 | 327.05 | 66.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=autochmod
- > 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/tools.php?page=autochmod
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 12 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=autochmod
- > Notice in wp-content/plugins/autochmod/autochmod.php+571
Trying to access array offset on value of type bool
- 24 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=autochmod
- > Notice in wp-content/plugins/autochmod/autochmod.php+571
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/autochmod/test/run.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/autochmod/autochmod.php:55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== autochmod ===
)
autochmod/autochmod.php Passed 13 tests
The entry point to "AutoCHMOD" version 0.5.2 is a PHP file that has certain tags in its header comment area
84 characters long description:
Protect folders and files from unhautorized changes managing filesystem permissions.
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
Success! There were no dangerous files found in this plugin5,255 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 100 | 248 | 4,235 |
PHP | 2 | 45 | 10 | 557 |
CSS | 5 | 45 | 28 | 259 |
PO File | 1 | 53 | 65 | 204 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 88.00 |
▷ Minimum class complexity | 88.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 16 | 55.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 44.83% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
graphic/closed.png | 0.60KB | 0.52KB | ▼ 14.26% |
jstree/themes/default-rtl/d.png | 7.28KB | 2.51KB | ▼ 65.48% |
jstree/themes/classic/d.png | 7.36KB | 2.58KB | ▼ 64.91% |
graphic/opened.png | 0.50KB | 0.54KB | 0.00% |
jstree/themes/apple/d.png | 7.58KB | 2.63KB | ▼ 65.33% |