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
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/export-plugins-and-templates/export-plugins-templates.php+11
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.92ms] Passed 4 tests
Server-side resources used by Export Plugins and Templates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.88 ▼31.80 |
Dashboard /wp-admin | 2.11 ▼1.24 | 6.42 ▼52.80 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.30 ▼38.41 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.44 ▼88.65 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.90 ▼31.29 |
Export Plugins /wp-admin/plugins.php?page=export_plugins | 2.21 | 5.66 |
Export Templates /wp-admin/themes.php?page=export_templates | 2.26 | 6.24 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Export Plugins and Templates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 14.35 ▼0.22 | 1.92 ▲0.02 | 44.16 ▲3.68 |
Dashboard /wp-admin | 2,203 ▲28 | 5.56 ▼0.26 | 85.66 ▼13.57 | 39.09 ▼2.09 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 1.98 ▲0.02 | 33.56 ▼3.31 | 35.77 ▼2.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.74 ▼0.18 | 660.52 ▼9.19 | 59.92 ▲9.07 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.17 ▲0.07 | 97.69 ▼3.33 | 44.08 ▼2.62 |
Export Plugins /wp-admin/plugins.php?page=export_plugins | 847 | 2.00 | 24.28 | 52.49 |
Export Templates /wp-admin/themes.php?page=export_templates | 857 | 1.99 | 25.42 | 27.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/export-plugins-and-templates/export-plugins-templates.php+11
define(): Declaration of case-insensitive constants is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=export_templates
- > Deprecated in wp-content/plugins/export-plugins-and-templates/export-plugins-templates.php+11
define(): Declaration of case-insensitive constants is deprecated
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/export-plugins-and-templates/includes/export-plugin-page.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-plugins-and-templates/export-plugins-templates.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/export-plugins-and-templates/includes/export-template-page.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Option of "Export plugins" in the "Plugins" menu.), #2 (Export plugins page.), #3 (Option of "Export Templates" in the "Appearence" menu.), #4 (Export Templates page.)
export-plugins-and-templates/export-plugins-templates.php 92% from 13 tests
The principal PHP file in "Export Plugins and Templates" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("export-plugins-and-templates.php" instead of "export-plugins-templates.php")
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
There were no executable files found in this plugin3,230 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 941 | 1,834 | 3,171 |
PO File | 1 | 19 | 29 | 59 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 553.00 |
▷ Minimum class complexity | 553.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 12.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.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 | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 63 | |
▷ Global constants | 63 | 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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 6.22KB | 3.32KB | ▼ 46.59% |
screenshot-2.png | 13.92KB | 7.00KB | ▼ 49.71% |
screenshot-1.png | 3.91KB | 2.32KB | ▼ 40.80% |
screenshot-4.png | 13.34KB | 6.89KB | ▼ 48.35% |