Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/google-rank-badge/grank.php+123
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.15ms] Passed 4 tests
A check of server-side resources used by Google Rank Badge
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.63 ▼0.99 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.21 ▼18.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.21 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.18 ▼7.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.52 ▲2.67 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Rank Badge
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲21 | 14.35 ▼0.40 | 1.48 ▼0.25 | 37.47 ▼5.77 |
Dashboard /wp-admin | 2,196 ▲19 | 5.52 ▼0.16 | 81.74 ▼6.72 | 37.23 ▼4.76 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.00 | 39.29 ▲3.20 | 34.87 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.50 ▼0.06 | 691.36 ▲3.26 | 53.44 ▲2.11 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.22 ▲0.13 | 98.17 ▼1.36 | 41.98 ▼0.02 |
Google Rank Badge /wp-admin/grank.php | 26 | 0.42 | 0.08 | 13.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/google-rank-badge/grank.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/grank.php
- > Network (severe)
wp-admin/grank.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Google Rank Badge in Action!), #2 (Google Rank Admin Settings)
google-rank-badge/grank.php 92% from 13 tests
Analyzing the main PHP file in "Google Rank Badge" version 1.0
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("google-rank-badge.php" instead of "grank.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected160 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 29 | 160 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.50 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 50.28KB | 13.09KB | ▼ 73.97% |
screenshot-1.png | 6.05KB | 3.29KB | ▼ 45.62% |
images/pagerank_transparent.png | 0.45KB | 0.25KB | ▼ 44.35% |
images/pagerank_blank.png | 0.36KB | 0.22KB | ▼ 39.95% |