Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.30ms] Passed 4 tests
Analyzing server-side resources used by Plugin Status - Export and Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.65 ▼3.96 |
Dashboard /wp-admin | 3.32 ▲0.01 | 53.64 ▲1.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.68 ▼8.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.38 ▼20.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.54 ▼0.22 |
Export /wp-admin/plugins.php?page=export | 3.24 | 35.74 |
Import /wp-admin/plugins.php?page=import | 3.23 | 33.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Status - Export and Import
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲44 | 13.25 ▼1.09 | 1.98 ▲0.09 | 39.64 ▼1.43 |
Dashboard /wp-admin | 2,211 ▲2 | 5.05 ▲0.22 | 104.98 ▲5.63 | 44.26 ▲0.13 |
Posts /wp-admin/edit.php | 2,076 ▼16 | 2.02 ▲0.03 | 34.97 ▼5.86 | 29.95 ▼6.56 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.64 ▲0.22 | 585.28 ▼30.05 | 47.85 ▲1.21 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.15 ▼0.08 | 97.28 ▼7.42 | 45.46 ▼1.27 |
Export /wp-admin/plugins.php?page=export | 808 | 2.02 | 27.51 | 32.07 |
Import /wp-admin/plugins.php?page=import | 798 | 2.05 | 24.45 | 31.07 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/plugin-status-export-and-import/includes/import.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/plugin-status-export-and-import/classes/class-plugin-status.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugin-status-export-and-import/plugin-status.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/plugin-status-export-and-import/includes/export.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in plugin-status-export-and-import/assets to your readme.txt
plugin-status-export-and-import/plugin-status.php 77% from 13 tests
Analyzing the main PHP file in "Plugin Status - Export and Import" version 1.0.0
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plugin-status-export-and-import.php" instead of "plugin-status.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin214 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 114 | 198 |
JavaScript | 1 | 6 | 3 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin