Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/ipgp-geolocation/install.php+25
Use of undefined constant body - assumed 'body' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.81ms] Passed 4 tests
Analyzing server-side resources used by IPGP Geolocation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.53 ▼2.72 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.72 ▼6.13 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.33 ▼3.78 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.02 ▼18.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.34 ▲1.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
IPGP Geolocation: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.43 ▼1.00 | 8.62 ▲6.93 | 43.31 ▲0.22 |
Dashboard /wp-admin | 2,213 ▲39 | 5.66 ▲0.05 | 90.26 ▼8.98 | 44.29 ▲1.22 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 1.98 ▼0.05 | 35.56 ▼4.67 | 34.40 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,614 ▲88 | 23.69 ▲0.08 | 669.10 ▼16.37 | 52.44 ▼4.38 |
Media Library /wp-admin/upload.php | 1,418 ▲24 | 4.20 ▼0.00 | 100.79 ▼8.60 | 46.00 ▲2.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ipgp-geolocation/ipgp-geolocation.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ipgp-geolocation ===
)
ipgp-geolocation/ipgp-geolocation.php Passed 13 tests
This is the main PHP file of "IPGP Geolocation" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
Show different content based on user location, or to redirect certain users to another url
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin504 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 85 | 23 | 461 |
JavaScript | 1 | 15 | 2 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin