Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲412.28ms] 75% from 4 tests
Server-side resources used by Geo Phone Master
Please fix the following
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 412.28ms on /wp-admin/admin.php?page=ngp_geotargeting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 815.58 ▲773.67 |
Dashboard /wp-admin | 3.43 ▲0.13 | 428.98 ▲377.30 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 300.25 ▲248.27 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 347.22 ▲249.87 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 888.30 ▲850.69 |
Import-export /wp-admin/admin.php?page=ngp_import_export | 3.32 | 284.65 |
Help /wp-admin/admin.php?page=ngp_help | 3.37 | 283.75 |
Widget themes /wp-admin/admin.php?page=ngp_menu_themes | 3.35 | 293.42 |
Multi-city /wp-admin/admin.php?page=ngp_multicity | 3.33 | 285.41 |
Settings /wp-admin/admin.php?page=ngp_setting | 3.33 | 293.61 |
Geo targeting /wp-admin/admin.php?page=ngp_geotargeting | 3.36 | 302.82 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Geo Phone Master
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲65 | 14.35 ▼0.30 | 2.46 ▼0.96 | 40.15 ▼10.07 |
Dashboard /wp-admin | 2,235 ▲55 | 5.65 ▲0.01 | 84.50 ▼4.49 | 41.61 ▼0.94 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 1.96 ▼0.05 | 37.80 ▲1.26 | 38.23 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 21.10 ▼2.03 | 644.59 ▼15.91 | 51.66 ▼3.71 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.08 ▼0.19 | 101.79 ▼0.38 | 43.40 ▼3.29 |
Import-export /wp-admin/admin.php?page=ngp_import_export | 881 | 2.04 | 25.73 | 26.56 |
Help /wp-admin/admin.php?page=ngp_help | 1,265 | 2.02 | 23.59 | 38.37 |
Widget themes /wp-admin/admin.php?page=ngp_menu_themes | 1,043 | 2.15 | 24.96 | 29.63 |
Multi-city /wp-admin/admin.php?page=ngp_multicity | 862 | 2.05 | 25.31 | 24.40 |
Settings /wp-admin/admin.php?page=ngp_setting | 954 | 2.03 | 24.43 | 27.05 |
Geo targeting /wp-admin/admin.php?page=ngp_geotargeting | 859 | 2.05 | 26.75 | 23.35 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'NGP_controller' not found in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master-popup.php:4
- > PHP Fatal error
Uncaught Error: Class 'NGP_controller' not found in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master-themes.php:4
- > PHP Fatal error
Uncaught Error: Class 'NGP_controller' not found in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master-admin.php:4
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'NGP_controller' not found in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master-import-export.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master-help.php:2
- > PHP Fatal error
Uncaught Error: Class 'NGP_controller' not found in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master-setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/geo-phone-master/nor1m-geo-phone-master.php:43
- > 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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (An example implementation), #2 (Multi-city), #3 (Geotargeting), #4 (Settings), #5 (Help), #6 (Theme), #7 (Import/Export)
geo-phone-master/nor1m-geo-phone-master.php 92% from 13 tests
The main PHP script in "Geo Phone Master" version 0.7 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("geo-phone-master.php" instead of "nor1m-geo-phone-master.php")
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 plugin2,347 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 184 | 148 | 1,053 |
CSS | 1 | 17 | 11 | 802 |
PO File | 1 | 96 | 106 | 211 |
JavaScript | 1 | 21 | 12 | 175 |
Markdown | 1 | 16 | 0 | 106 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.42MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 51.55KB | 18.55KB | ▼ 64.01% |
screenshot-4.png | 51.85KB | 14.63KB | ▼ 71.78% |
screenshot-2.png | 59.48KB | 17.13KB | ▼ 71.20% |
screenshot-5.png | 59.04KB | 16.44KB | ▼ 72.15% |
screenshot-1.png | 156.01KB | 38.74KB | ▼ 75.17% |