Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼2.59ms] Passed 4 tests
A check of server-side resources used by Rara One Click Demo Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 39.82 ▲1.72 |
Dashboard /wp-admin | 3.83 ▲0.48 | 48.90 ▼11.67 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 52.88 ▲6.64 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 98.37 ▼2.08 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 38.41 ▲1.69 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Rara One Click Demo Import
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.39 ▼1.01 | 1.73 ▲0.04 | 41.33 ▼1.05 |
Dashboard /wp-admin | 2,206 ▲15 | 5.86 ▲0.98 | 100.49 ▲3.26 | 38.40 ▼1.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 40.08 ▲7.07 | 34.11 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.13 ▼0.27 | 652.00 ▼21.54 | 58.20 ▲2.38 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.01 | 98.16 ▼4.75 | 43.93 ▼2.57 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rara-one-click-demo-import/rara-one-click-demo-import.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'RRDI_PATHincludes/extras/class-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-logger.php on line 9
- > PHP Warning
Use of undefined constant RRDI_PATH - assumed 'RRDI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-include-files.php on line 16
- > PHP Warning
Use of undefined constant RRDI_PATH - assumed 'RRDI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-wxr-importer.php on line 11
- > PHP Warning
require(RRDI_PATHincludes/extras/class-wxr-importer.php): failed to open stream: No such file or directory in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-wxr-importer.php on line 11
- > PHP Fatal error
require(): Failed opening required 'RRDI_PATHincludes/class-rrdi-helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-include-files.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader' not found in wp-content/plugins/rara-one-click-demo-import/includes/vendor/class-demo-upgrader.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-init.php:30
- > PHP Fatal error
Uncaught Error: Class 'RDDI_WP_Importer_Logger' not found in wp-content/plugins/rara-one-click-demo-import/includes/extras/class-logger-cli.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rara-one-click-demo-import/includes/settings/intro.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/rara-one-click-demo-import/includes/class-rrdi-customizer-option.php:12
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: content, widgets, import, data, settings...
rara-one-click-demo-import/rara-one-click-demo-import.php Passed 13 tests
"Rara One Click Demo Import" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Import demo content, widgets and settings of themes made by RaraTheme with just one click.
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
No dangerous file extensions were detected3,310 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 855 | 1,456 | 3,080 |
CSS | 1 | 32 | 7 | 133 |
JavaScript | 1 | 14 | 9 | 97 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 127 | |
▷ Static methods | 23 | 18.11% |
▷ Public methods | 72 | 56.69% |
▷ Protected methods | 34 | 26.77% |
▷ Private methods | 21 | 16.54% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin