Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.13MB] [CPU: ▼40.76ms] Passed 4 tests
Analyzing server-side resources used by Universo Widget and Mobile Redirect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.63 | 17.00 ▼22.55 |
Dashboard /wp-admin | 2.89 ▼0.42 | 18.44 ▼32.67 |
Posts /wp-admin/edit.php | 2.89 ▼0.47 | 21.29 ▼31.12 |
Add New Post /wp-admin/post-new.php | 2.89 ▼3.00 | 20.60 ▼76.69 |
Media Library /wp-admin/upload.php | 2.89 ▼0.34 | 17.98 ▼19.61 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Universo Widget and Mobile Redirect: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.79 ▲0.36 | 1.72 ▼0.46 | 42.90 ▲1.92 |
Dashboard /wp-admin | 2,226 ▲26 | 4.85 ▼1.04 | 110.85 ▲10.27 | 39.12 ▼5.85 |
Posts /wp-admin/edit.php | 2,099 ▲2 | 2.01 ▲0.00 | 39.98 ▲2.61 | 34.34 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,542 ▲1 | 23.45 ▲5.25 | 654.97 ▼24.25 | 59.64 ▼1.37 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.23 ▼0.07 | 96.34 ▼18.74 | 46.28 ▼3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/universo-widget-and-mobile-redirect/universo-widget-and-mobile-redirect.php+65
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universo-widget-and-mobile-redirect/universo-widget-and-mobile-redirect.php:214
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Form), #2 (Widget Sidebar in use), #3 (Universo Mobile App)
universo-widget-and-mobile-redirect/universo-widget-and-mobile-redirect.php 92% from 13 tests
The main PHP script in "Universo Widget and Mobile Redirect" version 2.4.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin316 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 42 | 233 |
PO File | 1 | 26 | 0 | 63 |
CSS | 1 | 2 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 1 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 26.64KB | 10.67KB | ▼ 59.96% |
screenshot-1.png | 115.68KB | 42.01KB | ▼ 63.68% |
screenshot-3.png | 140.74KB | 75.83KB | ▼ 46.12% |
res/phone_icons.png | 5.01KB | 2.22KB | ▼ 55.64% |