Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-fetlife-importer/wp-fetlife-importer.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; WP_FetLife_Import has a deprecated constructor
Server metrics [RAM: ▼1.67MB] [CPU: ▼53.81ms] Passed 4 tests
A check of server-side resources used by WP FetLife Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 5.78 ▼37.50 |
Dashboard /wp-admin | 2.34 ▼0.96 | 6.84 ▼43.12 |
Posts /wp-admin/edit.php | 2.34 ▼1.01 | 8.06 ▼35.61 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 7.00 ▼99.02 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 5.54 ▼28.97 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP FetLife Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.43 | 1.71 ▲0.04 | 45.60 ▲5.57 |
Dashboard /wp-admin | 2,206 ▲20 | 5.85 ▲0.95 | 108.99 ▼8.15 | 41.33 ▲1.73 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 35.62 ▲2.75 | 34.98 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.19 ▲0.02 | 671.48 ▲57.11 | 60.76 ▲12.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.01 | 100.43 ▼6.48 | 40.38 ▼4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-fetlife-importer/wp-fetlife-importer.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; WP_FetLife_Import has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-fetlife-importer ===
) - Screenshots: Screenshot #1 (Enter your FetLife connection details on the WP FetLife Importer screen, and optionally specify a proxy URL. Once entered, you're ready to import!) image required
wp-fetlife-importer/wp-fetlife-importer.php Passed 13 tests
The main PHP file in "WP FetLife Importer" ver. 0.2.3 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Import your FetLife Writings and Pictures to your WordPress blog as posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,513 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 203 | 432 | 1,245 |
PO File | 1 | 49 | 53 | 161 |
Markdown | 2 | 29 | 0 | 98 |
HTML | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
An short overview of 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.30 |
Average class complexity | 17.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 71 | 85.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 14.46% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.51KB | 15.25KB | ▼ 62.37% |