Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.32ms] Passed 4 tests
This is a short check of server-side resources used by Greenlet Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.91 ▼7.29 |
Dashboard /wp-admin | 3.37 ▲0.06 | 43.79 ▼2.87 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.80 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.97 ▲3.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 30.78 ▼2.87 |
Greenlet Importer /wp-admin/themes.php?page=greenlet-importer | 3.27 | 29.45 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Greenlet Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 14.48 ▼0.32 | 2.05 ▼0.29 | 42.11 ▲3.12 |
Dashboard /wp-admin | 2,213 ▲22 | 5.86 ▲0.05 | 98.50 ▼8.05 | 41.67 ▲0.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 40.38 ▲1.35 | 36.18 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.51 ▼4.50 | 650.34 ▼11.77 | 58.89 ▼1.38 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.01 | 94.57 ▼4.72 | 43.43 ▲0.41 |
Greenlet Importer /wp-admin/themes.php?page=greenlet-importer | 887 | 6.50 | 152.12 | 29.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'GREENLET_IMPORTER_LIBRARY_DIR/background/class-wp-async-request.php' (include_path='.:/usr/share/php') in wp-content/plugins/greenlet-importer/library/class-background-importer.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function Greenlet\\Importer\\add_action() in wp-content/plugins/greenlet-importer/library/class-importer.php:31
- > PHP Warning
require_once(GREENLET_IMPORTER_LIBRARY_DIR/background/class-wp-async-request.php): failed to open stream: No such file or directory in wp-content/plugins/greenlet-importer/library/class-background-importer.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'Greenlet\\Importer\\WP_Background_Process' not found in wp-content/plugins/greenlet-importer/library/background/class-settings-importer.php:15
- > PHP Fatal error
Uncaught Error: Class 'Greenlet\\Importer\\WP_Background_Process' not found in wp-content/plugins/greenlet-importer/library/background/class-posts-importer.php:15
- > PHP Fatal error
Uncaught Error: Class 'Greenlet\\Importer\\Posts_Importer' not found in wp-content/plugins/greenlet-importer/library/background/class-attachments-importer.php:15
- > PHP Warning
Use of undefined constant GREENLET_IMPORTER_LIBRARY_DIR - assumed 'GREENLET_IMPORTER_LIBRARY_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/greenlet-importer/library/class-background-importer.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function Greenlet\\Importer\\current_user_can() in wp-content/plugins/greenlet-importer/library/class-importer-options.php:39
- > PHP Fatal error
Uncaught Error: Class 'Greenlet\\Importer\\WP_Background_Process' not found in wp-content/plugins/greenlet-importer/library/background/class-styles-importer.php:15
- > PHP Fatal error
Uncaught Error: Class 'Greenlet\\Importer\\WP_Background_Process' not found in wp-content/plugins/greenlet-importer/library/background/class-menus-importer.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: react, one-click, sites, performance, styles...
greenlet-importer/importer.php 85% from 13 tests
The entry point to "Greenlet Importer" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("greenlet-importer.php" instead of "importer.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin3,886 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 523 | 93 | 2,810 |
PHP | 12 | 252 | 682 | 797 |
CSS | 1 | 13 | 0 | 279 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 6 | 9.52% |
▷ Public methods | 29 | 46.03% |
▷ Protected methods | 27 | 42.86% |
▷ Private methods | 7 | 11.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
No PNG files were detected