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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼5.65ms] Passed 4 tests
Analyzing server-side resources used by Smaily for WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 39.25 ▼1.21 |
Dashboard /wp-admin | 3.56 ▲0.21 | 47.66 ▼10.47 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.29 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 87.26 ▼8.74 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.85 ▲3.05 |
Form /wp-admin/admin.php?page=smaily-for-wp | 3.43 | 33.96 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
smailyforwp_db_version |
widget_smaily_subscription_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Smaily for WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.70 ▲0.29 | 1.77 ▲0.17 | 40.27 ▼6.54 |
Dashboard /wp-admin | 2,220 ▲45 | 5.65 ▼0.05 | 82.67 ▼19.77 | 73.63 ▲29.08 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.98 ▲0.03 | 38.02 ▼2.26 | 34.62 ▼2.02 |
Add New Post /wp-admin/post-new.php | 6,386 ▲4,855 | 27.42 ▲4.33 | 973.93 ▲362.26 | 41.79 ▼8.55 |
Media Library /wp-admin/upload.php | 1,422 ▲28 | 4.15 ▼0.01 | 99.21 ▲0.45 | 76.83 ▲36.05 |
Form /wp-admin/admin.php?page=smaily-for-wp | 862 | 2.00 | 26.08 | 30.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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 | 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 following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smaily-for-wp/admin/partials/smaily-for-wp-admin-form.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smaily-for-wp/public/partials/smaily-for-wp-public-advanced.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smaily-for-wp/public/partials/smaily-for-wp-public-basic.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/smaily-for-wp/admin/partials/smaily-for-wp-admin-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smaily-for-wp/includes/class-smaily-for-wp-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: api, plugin, sidebar, smaily, widget...
smaily-for-wp/smaily-for-wp.php Passed 13 tests
Analyzing the main PHP file in "Smaily for WP" version 3.1.2
36 characters long description:
Smaily newsletter subscription form.
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
There were no executable files found in this plugin2,692 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 341 | 1,248 | 1,510 |
Markdown | 1 | 121 | 0 | 553 |
JavaScript | 2 | 94 | 228 | 425 |
PO File | 1 | 45 | 54 | 115 |
CSS | 3 | 9 | 24 | 67 |
JSON | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 20 | 18.18% |
▷ Public methods | 89 | 80.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 19.09% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gfx/icon.png | 0.61KB | 0.51KB | ▼ 16.56% |
gfx/remove.png | 0.17KB | 0.17KB | 0.00% |