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 gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼0.67ms] Passed 4 tests
This is a short check of server-side resources used by SMARTLY
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 39.62 ▼7.82 |
Dashboard /wp-admin | 3.56 ▲0.26 | 51.95 ▲2.71 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 51.21 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 98.01 ▲6.92 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.38 ▲3.96 |
Settings /wp-admin/edit.php?post_type=smartly&page=smt-settings | 3.45 | 34.00 |
Add New /wp-admin/post-new.php?post_type=smartly | 3.58 | 53.17 |
All Products /wp-admin/edit.php?post_type=smartly | 3.52 | 40.78 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
smt_settings |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SMARTLY
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 13.27 ▼1.11 | 1.65 ▼0.19 | 43.66 ▼1.11 |
Dashboard /wp-admin | 2,270 ▲88 | 5.89 ▼0.01 | 104.02 ▼0.44 | 38.55 ▼3.52 |
Posts /wp-admin/edit.php | 2,159 ▲70 | 2.06 ▲0.03 | 40.64 ▲1.07 | 32.85 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 23.46 ▲0.35 | 609.49 ▼40.14 | 54.51 ▲1.73 |
Media Library /wp-admin/upload.php | 1,453 ▲62 | 4.25 ▲0.07 | 100.18 ▼1.57 | 40.31 ▼7.84 |
Settings /wp-admin/edit.php?post_type=smartly&page=smt-settings | 871 | 1.72 | 29.15 | 26.19 |
Add New /wp-admin/post-new.php?post_type=smartly | 2,506 | 7.91 | 175.24 | 67.14 |
All Products /wp-admin/edit.php?post_type=smartly | 1,153 | 1.99 | 33.53 | 30.92 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- smt_settings
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=smartly
- > Notice in wp-content/plugins/smartly/includes/meta-box.php+59
Undefined index: file_name
- > GET request to /wp-admin/post-new.php?post_type=smartly
- > Notice in wp-content/plugins/smartly/includes/meta-box.php+60
Undefined index: file_type
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Tags: No valid plugin tags found
smartly/smartly.php 85% from 13 tests
"SMARTLY" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,088 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 141 | 57 | 811 |
PO File | 1 | 65 | 68 | 197 |
JavaScript | 1 | 19 | 16 | 61 |
CSS | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 33.33% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin