Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/random-app/includes/widget.php+69
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼53.33ms] Passed 4 tests
A check of server-side resources used by Random App
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.20 ▼32.26 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.16 ▼51.19 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.83 ▼43.66 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.96 ▼86.20 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.08 ▼29.30 |
All Apps /wp-admin/edit.php?post_type=random_app | 2.05 | 5.23 |
Add new /wp-admin/post-new.php?post_type=random_app | 2.05 | 5.37 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_random_app_widget |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Random App
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 14.38 ▼0.02 | 1.87 ▼0.05 | 40.32 ▼4.03 |
Dashboard /wp-admin | 2,229 ▲52 | 5.62 ▼0.08 | 91.13 ▲2.99 | 41.18 ▲0.72 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.03 ▲0.02 | 39.91 ▲6.25 | 35.11 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.14 ▼0.36 | 642.59 ▼57.77 | 50.80 ▼10.90 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.21 ▼0.00 | 96.33 ▼2.04 | 41.24 ▼4.53 |
All Apps /wp-admin/edit.php?post_type=random_app | 1,104 | 1.97 | 31.49 | 34.20 |
Add new /wp-admin/post-new.php?post_type=random_app | 1,742 | 3.60 | 64.33 | 92.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/random-app/includes/widget.php+69
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_random_app_widget
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=random_app
- > Deprecated in wp-content/plugins/random-app/includes/widget.php+69
Function create_function() is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=random_app
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in random_app_widget is deprecated since version 4.3.0! Use __construct() instead.
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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/random-app/includes/functions.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/random-app/random-app.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Adding new app in Admin panel:), #2 (Random app is widget:)
- Plugin Name: You should set the name of your plugin on the first line (
=== random-app ===
) - Screenshots: Please add descriptions for these screenshots #0, #0 in random-app/assets to your readme.txt
random-app/random-app.php 85% from 13 tests
The primary PHP file in "Random App" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Good job! No executable or dangerous file extensions detected303 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 53 | 245 |
CSS | 1 | 10 | 2 | 58 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
7 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/play-store.png | 0.62KB | 0.68KB | 0.00% |
images/app-store.png | 0.74KB | 0.93KB | 0.00% |
images/badge-playmarket.png | 13.95KB | 5.58KB | ▼ 60.01% |
images/windows-store.png | 0.40KB | 0.50KB | 0.00% |
images/link.png | 0.79KB | 0.85KB | 0.00% |