Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.21MB] [CPU: ▼157.92ms] Passed 4 tests
Analyzing server-side resources used by R Animated Icon Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 37.05 ▲16.15 |
Dashboard /wp-admin | 2.86 ▼0.20 | 26.10 ▼24.93 |
Posts /wp-admin/edit.php | 2.98 ▼0.13 | 32.64 ▼13.21 |
Add New Post /wp-admin/post-new.php | 4.99 ▼0.45 | 74.16 ▼580.96 |
Media Library /wp-admin/upload.php | 2.95 ▼0.06 | 23.91 ▼12.56 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by R Animated Icon Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲91 | 16.27 ▲0.69 | 14.21 ▲5.57 | 48.13 ▼2.50 |
Dashboard /wp-admin | 2,969 ▲35 | 5.89 ▼0.11 | 137.32 ▼6.40 | 111.62 ▼2.40 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.84 ▲0.12 | 62.73 ▼0.64 | 91.81 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,606 ▲108 | 18.56 ▼0.26 | 371.43 ▼11.48 | 108.34 ▼0.48 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.13 ▲0.07 | 142.07 ▼2.46 | 122.31 ▲6.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: output in wp-content/plugins/r-animated-icon/modules/default/templates/_r_default_animated_icon_template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/r-animated-icon/modules/default/_r_default_animated_icon.php:13
- > PHP Notice
Undefined variable: r_animated_icon_file in wp-content/plugins/r-animated-icon/modules/default/templates/_r_default_animated_icon_template.php on line 4
- > PHP Notice
Undefined variable: css_class in wp-content/plugins/r-animated-icon/modules/default/templates/_r_default_animated_icon_template.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in r-animated-icon/assets to your readme.txt
r-animated-icon/r-animated-icon.php 92% from 13 tests
The main PHP file in "R Animated Icon Plugin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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 plugin156 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 12 | 19 | 119 |
JavaScript | 2 | 4 | 0 | 30 |
CSS | 1 | 0 | 0 | 6 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-128x128.png | 19.24KB | 7.99KB | ▼ 58.48% |