Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.75MB] [CPU: ▼2.61ms] Passed 4 tests
This is a short check of server-side resources used by Encute
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 44.08 ▲3.46 |
Dashboard /wp-admin | 4.06 ▲0.72 | 55.88 ▼11.49 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 57.28 ▲6.29 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 97.14 ▼8.69 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 49.30 ▲11.38 |
Encute /wp-admin/tools.php?page=encute | 3.96 | 35.71 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Encute: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▲0.05 | 2.20 ▲0.54 | 46.79 ▲5.65 |
Dashboard /wp-admin | 2,199 ▲21 | 5.58 ▼0.07 | 85.79 ▼17.39 | 44.35 ▲3.21 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.08 ▲0.07 | 41.99 ▲3.96 | 37.59 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.47 ▲6.00 | 617.23 ▼70.29 | 51.00 ▼2.78 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.27 ▲0.08 | 96.57 ▼20.34 | 39.64 ▼9.01 |
Encute /wp-admin/tools.php?page=encute | 937 | 1.99 | 28.15 | 37.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CWS\\Encute\\Actions\\Action' not found in wp-content/plugins/encute/app/Actions/RemoveScript.php:5
- > PHP Fatal error
Uncaught Error: Interface 'CWS\\Encute\\Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/encute/lib/Tekta/Contracts/PluginData.php:16
- > PHP Fatal error
Uncaught Error: Class 'CWS\\Encute\\Actions\\Action' not found in wp-content/plugins/encute/app/Actions/RemoveStyleIf.php:7
- > PHP Fatal error
Uncaught Error: Interface 'CWS\\Encute\\Contracts\\Enqueueable' not found in wp-content/plugins/encute/app/Contracts/EnqueueableStyle.php:5
- > PHP Fatal error
Uncaught Error: Interface 'CWS\\Encute\\Illuminate\\Contracts\\Container\\ContextualBindingBuilder' not found in wp-content/plugins/encute/lib/Illuminate/Container/ContextualBindingBuilder.php:8
- > PHP Fatal error
Uncaught Error: Class 'CWS\\Encute\\Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/encute/app/Providers/ActionsProvider.php:9
- > PHP Fatal error
Uncaught Error: Class 'CWS\\Encute\\Actions\\ModifyStyleTag' not found in wp-content/plugins/encute/app/Actions/MakeStyleDefer.php:5
- > PHP Fatal error
Uncaught Error: Class 'CWS\\Encute\\Enqueue' not found in wp-content/plugins/encute/app/Script.php:7
- > PHP Fatal error
Uncaught Error: Interface 'CWS\\Encute\\Illuminate\\Contracts\\Container\\Container' not found in wp-content/plugins/encute/lib/Illuminate/Container/Container.php:15
- > PHP Fatal error
Uncaught Error: Class 'CWS\\Encute\\Actions\\Action' not found in wp-content/plugins/encute/app/Actions/MoveStyleToFooter.php:5
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: performance, scripts, styles
encute/index.php 85% from 13 tests
The entry point to "Encute" version 0.8.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("encute.php" instead of "index.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,912 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 1,219 | 3,436 | 3,794 |
JSON | 2 | 0 | 0 | 75 |
YAML | 2 | 0 | 0 | 41 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 47 | |
▷ Abstract classes | 6 | 12.77% |
▷ Concrete classes | 41 | 87.23% |
▷ Final classes | 0 | 0.00% |
Methods | 513 | |
▷ Static methods | 107 | 20.86% |
▷ Public methods | 454 | 88.50% |
▷ Protected methods | 56 | 10.92% |
▷ Private methods | 3 | 0.58% |
Functions | 51 | |
▷ Named functions | 3 | 5.88% |
▷ Anonymous functions | 48 | 94.12% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin