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.15MB] [CPU: ▼3.44ms] Passed 4 tests
A check of server-side resources used by RAWR for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 44.74 ▲4.05 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.81 ▼0.22 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 46.55 ▼1.54 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 86.91 ▼11.29 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 36.10 ▼0.72 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
rawr_options |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by RAWR for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲121 | 13.20 ▼1.45 | 2.07 ▲0.09 | 42.26 ▼4.35 |
Dashboard /wp-admin | 2,275 ▲90 | 5.87 ▲0.02 | 101.26 ▼0.05 | 86.34 ▲40.03 |
Posts /wp-admin/edit.php | 2,161 ▲72 | 2.18 ▲0.15 | 36.40 ▼0.39 | 38.09 ▲2.54 |
Add New Post /wp-admin/post-new.php | 6,564 ▲5,031 | 20.38 ▼2.67 | 983.49 ▲307.69 | 40.24 ▼15.86 |
Media Library /wp-admin/upload.php | 1,457 ▲66 | 4.16 ▼0.09 | 98.26 ▼7.26 | 90.70 ▲44.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rawr/admin/partials/rawr-admin-settings.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: You are using too many tags: 31 tag instead of maximum 10
rawr/rawr.php 92% from 13 tests
The entry point to "RAWR for WordPress" version 0.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,304 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 685 | 749 |
CSS | 6 | 10 | 5 | 464 |
SVG | 2 | 0 | 0 | 85 |
JavaScript | 3 | 1 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 55 | |
▷ Static methods | 9 | 16.36% |
▷ Public methods | 42 | 76.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 23.64% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.60MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 118.28KB | 43.46KB | ▼ 63.26% |
screenshot-2.png | 263.78KB | 85.89KB | ▼ 67.44% |
admin/assets/rawr-logo.png | 19.12KB | 1.68KB | ▼ 91.22% |
admin/assets/rawr-logo-menu.png | 1.03KB | 1.08KB | 0.00% |
public/img/rawr-fallback-image.png | 35.72KB | 9.93KB | ▼ 72.20% |