Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.15ms] Passed 4 tests
Analyzing server-side resources used by Motion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.53 ▼2.00 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.97 ▼4.98 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.71 ▼3.95 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 85.23 ▼13.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 39.50 ▲1.48 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 11 new options
New WordPress options |
---|
motion_option_customCSS |
motion_option_live |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
motion_option_offset |
motion_option_mobile |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Motion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲158 | 13.43 ▼1.17 | 8.86 ▲6.73 | 39.66 ▼6.00 |
Dashboard /wp-admin | 2,260 ▲83 | 5.55 ▲0.03 | 82.55 ▼18.85 | 70.92 ▲26.30 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 1.99 ▼0.01 | 34.69 ▼1.51 | 36.65 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,598 ▲70 | 21.07 ▼2.15 | 785.76 ▲100.40 | 30.99 ▼44.73 |
Media Library /wp-admin/upload.php | 1,459 ▲56 | 4.25 ▲0.02 | 114.85 ▲14.04 | 74.79 ▲28.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== motion ===
)
motion/motion.php 85% from 13 tests
"Motion" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,229 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 196 | 71 | 1,010 |
Sass | 23 | 107 | 182 | 591 |
PHP | 7 | 111 | 93 | 456 |
CSS | 2 | 55 | 94 | 148 |
JSON | 1 | 0 | 0 | 16 |
Ruby | 1 | 5 | 13 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 16 | 55.17% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-20x20.png | 0.52KB | 0.71KB | 0.00% |
images/paypal_donate_button217x50.png | 15.20KB | 5.70KB | ▼ 62.50% |
images/yeti239x200.png | 30.46KB | 9.90KB | ▼ 67.49% |
images/stars.png | 1.13KB | 0.65KB | ▼ 42.24% |