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.20MB] [CPU: ▼2.09ms] Passed 4 tests
Analyzing server-side resources used by Profile Widget Ninja
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.39 ▼1.17 |
Dashboard /wp-admin | 3.51 ▲0.20 | 49.07 ▼3.10 |
Posts /wp-admin/edit.php | 3.56 ▲0.19 | 50.87 ▲4.54 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.72 ▼8.63 |
Media Library /wp-admin/upload.php | 3.43 ▲0.19 | 36.09 ▲5.12 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_profile_widget_ninja |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Profile Widget Ninja
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.44 ▼1.23 | 1.89 ▲0.04 | 43.05 ▼1.11 |
Dashboard /wp-admin | 2,225 ▲37 | 5.08 ▼0.74 | 111.45 ▼5.02 | 39.53 ▼8.81 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.29 ▲0.28 | 41.25 ▲2.60 | 34.14 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,696 ▲162 | 24.74 ▲1.38 | 576.60 ▼113.66 | 33.94 ▼24.79 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.42 ▲0.24 | 96.30 ▼9.09 | 41.46 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_profile_widget_ninja
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
profile-widget-ninja/profile_widget_ninja.php 92% from 13 tests
The entry point to "Profile Widget Ninja" version 4.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("profile-widget-ninja.php" instead of "profile_widget_ninja.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected903 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 69 | 103 | 619 |
CSS | 1 | 8 | 17 | 277 |
JavaScript | 1 | 0 | 2 | 7 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 258.00 |
▷ Minimum class complexity | 258.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 33.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/sprite.png | 28.60KB | 9.47KB | ▼ 66.89% |
icons/paypal.png | 1.29KB | 1.29KB | 0.15% |
icons/star.png | 0.65KB | 0.66KB | 0.00% |
icons/donate.png | 2.40KB | 1.67KB | ▼ 30.48% |