Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/personal-statistics-for-authors/libraries/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.52MB] [CPU: ▼55.49ms] Passed 4 tests
Analyzing server-side resources used by Personal Statistics for Authors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.47 ▼1.00 | 8.28 ▼33.63 |
Dashboard /wp-admin | 2.49 ▼0.82 | 7.97 ▼41.92 |
Posts /wp-admin/edit.php | 2.49 ▼0.87 | 10.84 ▼40.43 |
Add New Post /wp-admin/post-new.php | 2.49 ▼3.40 | 8.83 ▼105.99 |
Media Library /wp-admin/upload.php | 2.49 ▼0.74 | 8.78 ▼26.80 |
My Dashboard /wp-admin/admin.php?page=PSFA/my-dashboard.php | 2.49 | 8.15 |
Authors /wp-admin/admin.php?page=PSFA/authors.php | 2.49 | 9.10 |
Averages /wp-admin/admin.php?page=PSFA/averages.php | 2.49 | 8.31 |
Help /wp-admin/admin.php?page=PSFA/help.php | 2.49 | 10.11 |
Personal Statistics for Authors /wp-admin/options-general.php?page=PSFA | 2.49 | 9.62 |
Server storage [IO: ▲2.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 107 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_psfa |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
psfa_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Personal Statistics for Authors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲95 | 15.12 ▲0.75 | 1.74 ▼0.13 | 42.58 ▲0.57 |
Dashboard /wp-admin | 2,282 ▲104 | 6.93 ▲1.22 | 108.08 ▼0.18 | 82.94 ▲39.62 |
Posts /wp-admin/edit.php | 2,156 ▲53 | 2.50 ▲0.52 | 43.41 ▲1.33 | 36.91 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 22.64 ▼0.47 | 698.64 ▲6.49 | 37.06 ▼22.56 |
Media Library /wp-admin/upload.php | 1,453 ▲59 | 4.62 ▲0.32 | 101.14 ▼6.75 | 92.96 ▲47.97 |
My Dashboard /wp-admin/admin.php?page=PSFA/my-dashboard.php | 830 | 1.91 | 27.53 | 24.63 |
Authors /wp-admin/admin.php?page=PSFA/authors.php | 809 | 1.98 | 31.47 | 27.21 |
Averages /wp-admin/admin.php?page=PSFA/averages.php | 827 | 1.95 | 26.71 | 26.63 |
Help /wp-admin/admin.php?page=PSFA/help.php | 934 | 1.94 | 31.23 | 30.66 |
Personal Statistics for Authors /wp-admin/options-general.php?page=PSFA | 932 | 1.94 | 27.29 | 36.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/personal-statistics-for-authors/libraries/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- psfa_version
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=PSFA
- > Deprecated in wp-content/plugins/personal-statistics-for-authors/libraries/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/admin.php?page=PSFA/my-dashboard.php
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=PSFA/averages.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=PSFA/averages.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/options-general.php?page=PSFA
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=PSFA
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 71× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/personal-statistics-for-authors/templates/promo.php:4
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_StorageService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_DriveService.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/personal-statistics-for-authors/templates/dashboard_widget_template.php:49
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_ComputeService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_PagespeedonlineService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_FusiontablesService.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_YouTubeService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/personal-statistics-for-authors/libraries/src/contrib/Google_BigqueryService.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/personal-statistics-for-authors/templates/inputs/client_secret.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== personal-statistics-for-authors ===
) - Screenshots: A description for screenshot #4 is missing in personal-statistics-for-authors/assets to your readme.txt
personal-statistics-for-authors/personal-statistics-for-authors.php 92% from 13 tests
Analyzing the main PHP file in "Personal Statistics for Authors" version 1.0.1
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 354 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin40,015 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 2,080 | 10,032 | 39,503 |
JavaScript | 4 | 24 | 24 | 233 |
PO File | 1 | 73 | 145 | 156 |
CSS | 1 | 23 | 0 | 123 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 993 | |
▷ Abstract classes | 4 | 0.40% |
▷ Concrete classes | 989 | 99.60% |
▷ Final classes | 0 | 0.00% |
Methods | 8,385 | |
▷ Static methods | 18 | 0.21% |
▷ Public methods | 8,358 | 99.68% |
▷ Protected methods | 4 | 0.05% |
▷ Private methods | 23 | 0.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 9 | 37.50% |
▷ Class constants | 15 | 62.50% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon32.png | 1.84KB | 1.52KB | ▼ 17.32% |
screenshot-1.png | 44.27KB | 14.94KB | ▼ 66.25% |
screenshot-2.png | 66.39KB | 24.22KB | ▼ 63.51% |
screenshot-4.png | 100.23KB | 44.26KB | ▼ 55.85% |
images/icon16.png | 1.51KB | 0.85KB | ▼ 43.62% |