Benchmarks
Plugin footprint 40% 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
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/plugin-directory-stats/plugin-directory-stats.php+63
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.82MB] [CPU: ▼34.23ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Directory Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.13 | 40.68 ▲0.62 |
Dashboard /wp-admin | 3.16 ▼0.18 | 23.99 ▼24.40 |
Posts /wp-admin/edit.php | 3.16 ▼0.23 | 28.03 ▼22.23 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.76 | 24.99 ▼81.00 |
Media Library /wp-admin/upload.php | 3.16 ▼0.10 | 25.40 ▼9.28 |
Plugin Dir Stats /wp-admin/options-general.php?page=plugin-dir-stats-options | 3.16 | 27.73 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: no files
Database: 1 new table, 10 new options
New tables |
---|
wp_plugin_dir_stats |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
plugin_dir_stats_setting_opt |
db_upgraded |
can_compress_scripts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
plugin_dir_stats_checkver_stamp |
widget_theysaidso_widget |
plugin_dir_stats_updated |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Directory Stats
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.61 ▼0.83 | 1.75 ▲0.01 | 40.65 ▲1.64 |
Dashboard /wp-admin | 2,226 ▲41 | 5.90 ▲0.09 | 100.95 ▼1.09 | 38.47 ▼6.42 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.03 | 39.17 ▼9.86 | 37.36 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 23.16 ▲5.60 | 619.51 ▼41.25 | 63.70 ▼0.91 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.24 ▲0.05 | 96.02 ▼9.77 | 44.69 ▼2.79 |
Plugin Dir Stats /wp-admin/options-general.php?page=plugin-dir-stats-options | 814 | 1.53 | 6.72 | 26.62 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/plugin-directory-stats/plugin-directory-stats.php+147
Undefined variable: plugin_dir_stats_page_hook
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=plugin-dir-stats-options
- > Notice in wp-content/plugins/plugin-directory-stats/plugin-directory-stats.php+150
Undefined variable: plugin_dir_stats_page_hook
- > GET request to /wp-admin/options-general.php?page=plugin-dir-stats-options
- > 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=plugin-dir-stats-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=plugin-dir-stats-options
- > Error in wp-content/plugins/plugin-directory-stats/plugin-directory-stats-admin.php+87
Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/plugin-directory-stats/plugin-directory-stats-admin.php:87
Stack trace:
#0 wp-content/plugins/plugin-directory-stats/plugin-directory-stats.php(764): include_once()
#1 wp-includes/class-wp-hook.php(310): PLUGIN_DIRECTORY_STATS->plugin_dir_stats_options_panel()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/plugin-directory-stats/plugin-directory-stats.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/plugin-directory-stats/plugin-directory-stats-admin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (This is a plugin stats.), #2 (This is a list by author.), #3 (This is setting panel.)
plugin-directory-stats/plugin-directory-stats.php 92% from 13 tests
The main PHP script in "Plugin Directory Stats" version 0.1.4 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected777 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 177 | 67 | 645 |
PO File | 1 | 48 | 49 | 111 |
JavaScript | 1 | 4 | 1 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected