Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.93ms] Passed 4 tests
Analyzing server-side resources used by Catch Themes Demo Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.85 ▼1.94 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.48 ▼1.96 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.29 ▲2.20 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.46 ▼5.06 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.74 ▲1.26 |
Catch Themes Demo Import /wp-admin/themes.php?page=catch-themes-demo-import | 3.35 | 33.78 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Catch Themes Demo Import
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.22 ▼0.13 | 1.79 ▼0.07 | 42.44 ▼2.21 |
Dashboard /wp-admin | 2,202 ▲24 | 5.62 ▲0.04 | 83.16 ▼36.03 | 41.71 ▼1.17 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.03 | 36.08 ▼2.67 | 33.82 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.48 ▼4.68 | 604.66 ▼24.28 | 61.23 ▲18.37 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.16 ▼0.04 | 102.18 ▼3.31 | 45.18 ▲0.81 |
Catch Themes Demo Import /wp-admin/themes.php?page=catch-themes-demo-import | 1,212 | 2.34 | 48.26 | 91.83 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/catch-themes-demo-import/catch-themes-demo-import.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-themes-demo-import/inc/ctp-tabs-removal.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/catch-themes-demo-import/inc/WPCLICommands.php:12
- > PHP Fatal error
Uncaught Error: Class 'CatchThemes\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/catch-themes-demo-import/inc/WXRImporter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-themes-demo-import/inc/demo-importer.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/catch-themes-demo-import/partials/footer.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/catch-themes-demo-import/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Class 'CatchThemes\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/catch-themes-demo-import/inc/Logger.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/catch-themes-demo-import/vendor/catchthemes/wp-content-importer-v2/src/WXRImporter.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-themes-demo-import/partials/sidebar.php:3
- > PHP Fatal error
Uncaught Error: Class 'CatchThemes\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/catch-themes-demo-import/vendor/catchthemes/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: demo, widgets, redux, theme options, content...
catch-themes-demo-import/catch-themes-demo-import.php 92% from 13 tests
This is the main PHP file of "Catch Themes Demo Import" version 2.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 195 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,822 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,156 | 1,924 | 4,447 |
CSS | 2 | 206 | 30 | 963 |
JavaScript | 4 | 64 | 71 | 399 |
Markdown | 1 | 9 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 185 | |
▷ Static methods | 36 | 19.46% |
▷ Public methods | 123 | 66.49% |
▷ Protected methods | 36 | 19.46% |
▷ Private methods | 26 | 14.05% |
Functions | 12 | |
▷ Named functions | 9 | 75.00% |
▷ Anonymous functions | 3 | 25.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/free-plugin-246x116.png | 8.01KB | 3.81KB | ▼ 52.42% |
images/premium-plugin-246x116.png | 9.01KB | 4.16KB | ▼ 53.83% |