Benchmarks
Plugin footprint 58% 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
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User error in wp-content/plugins/ansar-import/includes/class-ansar-import-activator.php+38
Ansar Import - This plugin requires Official Theme Ansar Theme to be activated to work.
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.06ms] Passed 4 tests
This is a short check of server-side resources used by Ansar Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.51 ▼3.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.05 ▼5.62 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.48 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.18 ▼13.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.36 ▲1.59 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Ansar Import
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.41 ▲0.15 | 1.57 ▼0.23 | 44.58 ▲2.40 |
Dashboard /wp-admin | 2,189 ▲12 | 5.54 ▼0.11 | 93.75 ▼7.64 | 40.33 ▼6.21 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.02 ▲0.03 | 35.24 ▼4.05 | 32.30 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.58 ▲0.10 | 692.77 ▲38.35 | 61.70 ▲0.81 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.05 | 108.57 ▲0.72 | 49.52 ▲0.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ansar-import/public/partials/ansar-import-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/ansar-import/includes/class-wp-import.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/ansar-import/admin/partials/ansar-import-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Theme Demos listing page.), #2 (Install and activate the required plugins.), #3 (Finally, Import the Demo with just one click.)
ansar-import/ansar-import.php Passed 13 tests
Analyzing the main PHP file in "Ansar Import" version 1.0.15
54 characters long description:
Ansar Import for Importing demo data Themeansar Theme.
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 plugin2,426 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 543 | 997 | 2,074 |
CSS | 3 | 27 | 25 | 236 |
JavaScript | 4 | 66 | 84 | 116 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 4 | 4.94% |
▷ Public methods | 73 | 90.12% |
▷ Protected methods | 3 | 3.70% |
▷ Private methods | 5 | 6.17% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/image/logo.png | 9.88KB | 3.56KB | ▼ 63.97% |