Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼39.51ms] Passed 4 tests
An overview of server-side resources used by WP GeoCaster
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.20 ▼8.21 |
Dashboard /wp-admin | 3.05 ▼0.29 | 23.12 ▼38.41 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 29.11 ▼24.77 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 21.70 ▼83.12 |
Media Library /wp-admin/upload.php | 3.05 ▼0.17 | 24.03 ▼11.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wpgeoc_countries |
wp_wpgeoc_cities |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
wpgeoc_db_version |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP GeoCaster
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.93 ▼0.33 | 5.24 ▲3.31 | 39.70 ▼1.92 |
Dashboard /wp-admin | 2,244 ▲56 | 4.88 ▼1.00 | 115.78 ▲14.18 | 42.40 ▼0.84 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.03 ▲0.05 | 39.57 ▼1.61 | 34.40 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,546 ▲15 | 23.21 ▲4.98 | 673.48 ▲64.94 | 68.08 ▲12.95 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.26 ▲0.06 | 98.97 ▼8.50 | 40.84 ▼4.36 |
Cities /wp-admin/wp-geocaster.php?page=wpgeoc-cities | 26 | 0.44 | 0.14 | 14.00 |
WP GeoCaster /wp-admin/wp-geocaster.php | 26 | 0.44 | 0.12 | 5.89 |
Countries /wp-admin/wp-geocaster.php?page=wpgeoc-countries | 26 | 0.44 | 0.08 | 8.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-geocaster/wp-geocaster.php+117
Function create_function() is deprecated
- Zombie tables detected upon uninstall: 2 tables
- wp_wpgeoc_cities
- wp_wpgeoc_countries
- The uninstall procedure has failed, leaving 7 options in the database
- wpgeoc_db_version
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-geocaster/pages/countries.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-geocaster/wp-geocaster.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-geocaster/pages/cities.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-geocaster/pages/frontpage.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-geocaster/wpgeocClasses.php on line 494
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geocaster/wpgeocClasses.php on line 494
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-geocaster/install.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-geocaster/wpgeocClasses.php on line 494
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-geocaster/install.php on line 6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/wp-geocaster.php?page=wpgeoc-cities
- > Network (severe)
wp-admin/wp-geocaster.php?page=wpgeoc-cities - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-geocaster.php
- > Network (severe)
wp-admin/wp-geocaster.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-geocaster.php?page=wpgeoc-countries
- > Network (severe)
wp-admin/wp-geocaster.php?page=wpgeoc-countries - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: geocaster, geolocate, wordpress
wp-geocaster/wp-geocaster.php 92% from 13 tests
The main file in "WP GeoCaster" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
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
There were no executable files found in this plugin1,234 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 202 | 174 | 1,092 |
CSS | 1 | 31 | 2 | 141 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/enabled.png | 0.50KB | 0.35KB | ▼ 29.16% |
images/disabled.png | 0.57KB | 0.43KB | ▼ 25.00% |