Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by Fashe Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.77 ▲4.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.52 ▼5.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.26 ▼4.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.06 ▼15.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.49 ▲1.92 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/fashe-companion/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Fashe Companion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 13.26 ▼1.32 | 4.39 ▲2.84 | 44.32 ▲1.47 |
Dashboard /wp-admin | 2,232 ▲29 | 5.79 ▲0.88 | 110.03 ▲4.34 | 39.33 ▼4.35 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.00 ▲0.01 | 39.41 ▲1.51 | 34.84 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,537 ▲6 | 17.58 ▼5.61 | 689.13 ▼0.93 | 64.12 ▲2.23 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.19 ▲0.02 | 99.80 ▼9.87 | 42.77 ▼4.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fashe-companion/inc/sidebar-widgets/newsletter-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== fashe-companion ===
)
fashe-companion/fashe-companion.php Passed 13 tests
The principal PHP file in "Fashe Companion" v. 1.2 is loaded by WordPress automatically on each request
47 characters long description:
Fashe Companion is a companion for Fashe theme.
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 detected11,195 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 64 | 64 | 5,956 |
PHP | 19 | 687 | 601 | 3,465 |
CSS | 5 | 18 | 2 | 1,211 |
SVG | 1 | 0 | 0 | 362 |
JavaScript | 6 | 66 | 15 | 200 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 99 | |
▷ Static methods | 4 | 4.04% |
▷ Public methods | 72 | 72.73% |
▷ Protected methods | 24 | 24.24% |
▷ Private methods | 3 | 3.03% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.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
4 PNG files occupy 0.14MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/fashe-meta/assets/img/thumb_03.png | 1.13KB | 0.13KB | ▼ 88.71% |
inc/fashe-meta/assets/img/thumb_02.png | 1.13KB | 0.14KB | ▼ 87.68% |
inc/demo-data/screen-image.png | 142.76KB | 53.60KB | ▼ 62.46% |
inc/fashe-meta/assets/img/thumb_01.png | 1.12KB | 0.13KB | ▼ 88.27% |