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
- Install procedure had errors
- > Parse error in wp-content/plugins/automatic-articles-importer/classes/class-article-import.php+135
syntax error, unexpected '|', expecting ';' or '{'
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests
An overview of server-side resources used by Automatic Articles Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.68 ▼2.25 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.72 ▲2.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.91 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.94 ▼18.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.52 ▼4.38 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Automatic Articles Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.35 ▼1.45 | 4.27 ▲2.24 | 40.07 ▲1.25 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▲0.01 | 103.89 ▼0.29 | 37.49 ▼4.93 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.06 | 39.21 ▼2.65 | 35.28 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.37 ▲0.29 | 627.45 ▼73.14 | 51.22 ▼3.75 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.00 | 96.56 ▼6.25 | 41.95 ▼0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/automatic-articles-importer/automatic-articles-importer.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/automatic-articles-importer/includes/wp-ziai-article-form.php:2
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/automatic-articles-importer/classes/class-article-import.php on line 135
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No plugin tags provided
automatic-articles-importer/automatic-articles-importer.php 85% from 13 tests
The main PHP script in "Automatic Articles Importer" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,007 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 82 | 105 | 1,360 |
PHP | 5 | 51 | 49 | 551 |
JavaScript | 1 | 10 | 1 | 96 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 1 | 4.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 17.48KB | 9.04KB | ▼ 48.24% |
assets/icon-256x256.png | 57.90KB | 28.56KB | ▼ 50.67% |
assets/screenshot-1.png | 90.92KB | 29.12KB | ▼ 67.98% |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.08KB | 0.17KB | 0.00% |