Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.93ms] Passed 4 tests
Analyzing server-side resources used by YalaThemes ToolKit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.13 ▼4.86 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.43 ▼0.99 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 52.65 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 99.22 ▼5.37 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.25 ▲4.05 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YalaThemes ToolKit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.30 | 1.78 ▲0.04 | 40.68 ▼4.54 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▼0.04 | 93.19 ▲3.22 | 44.18 ▲1.37 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▲0.05 | 41.36 ▲3.53 | 36.38 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.44 | 607.39 ▼79.96 | 52.76 ▲0.29 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.14 ▼0.15 | 96.28 ▼4.55 | 45.70 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (YalaThemes Toolkit)
yala-themes-toolkit/yalathemes-toolkit.php 77% from 13 tests
"YalaThemes ToolKit" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yala-themes-toolkit.php" instead of "yalathemes-toolkit.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin423 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 78 | 40 | 326 |
CSS | 1 | 8 | 0 | 62 |
JavaScript | 1 | 5 | 5 | 23 |
JSON | 12 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 2.66MB with 1.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/demo/yala-travel/demo-2/demo.png | 523.07KB | 273.45KB | ▼ 47.72% |
inc/demo/yala-travel/demo-1/demo.png | 910.59KB | 303.26KB | ▼ 66.70% |
inc/demo/yala-travel-pro/demo-1/demo.png | 698.56KB | 300.28KB | ▼ 57.01% |
inc/demo/yala-travel-pro/demo-2/demo.png | 523.07KB | 273.45KB | ▼ 47.72% |
inc/demo/yala-mag/demo-1/demo.png | 65.81KB | 65.90KB | 0.00% |