Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▲128.69ms] Passed 4 tests
Server-side resources used by AF Companion - Build Stylish WordPress Websites in Minutes – No Coding, Just Click and Go! Starter Sites Importer for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 173.87 ▲132.22 |
Dashboard /wp-admin | 3.90 ▲0.59 | 184.10 ▲133.16 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 204.14 ▲158.51 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 213.92 ▲118.60 |
Media Library /wp-admin/upload.php | 3.83 ▲0.59 | 165.35 ▲130.78 |
Import Demo Data /wp-admin/admin.php?page=af-companion | 3.79 | 164.95 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AF Companion - Build Stylish WordPress Websites in Minutes – No Coding, Just Click and Go! Starter Sites Importer for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲111 | 14.22 ▼0.12 | 1.62 ▼0.02 | 39.85 ▼3.37 |
Dashboard /wp-admin | 2,276 ▲95 | 5.63 ▼0.08 | 91.44 ▼21.45 | 39.68 ▼6.59 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.02 ▲0.02 | 40.93 ▲1.68 | 35.26 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 21.20 ▼2.08 | 656.88 ▲60.65 | 43.91 ▼17.72 |
Media Library /wp-admin/upload.php | 1,479 ▲76 | 4.23 ▲0.05 | 97.37 ▼0.21 | 40.49 ▼0.81 |
Import Demo Data /wp-admin/admin.php?page=af-companion | 1,051 | 2.18 | 40.04 | 48.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/af-companion/af-companion.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant AFTC_PATH - assumed 'AFTC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/af-companion/inc/class-aftc-logger.php on line 9
- > PHP Fatal error
require(): Failed opening required 'AFTC_PATHinc/class-aftc-helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/af-companion/inc/class-aftc-main.php on line 9
- > PHP Warning
Use of undefined constant AFTC_PATH - assumed 'AFTC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/af-companion/inc/class-aftc-main.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'HM_WP_Importer_Logger' not found in wp-content/plugins/af-companion/inc/importer/class-logger-cli.php:3
- > PHP Fatal error
require(): Failed opening required 'AFTC_PATHinc/importer/class-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/af-companion/inc/class-aftc-logger.php on line 9
- > PHP Warning
require(AFTC_PATHinc/class-aftc-helpers.php): failed to open stream: No such file or directory in wp-content/plugins/af-companion/inc/class-aftc-main.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/af-companion/inc/import-packages/import-packages.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/af-companion/inc/demo-importer.php:63
- > PHP Warning
Use of undefined constant AFTC_PATH - assumed 'AFTC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/af-companion/inc/class-aftc-wxr-importer.php on line 11
- > PHP Fatal error
require(): Failed opening required 'AFTC_PATHinc/importer/class-wxr-importer.php' (include_path='.:/usr/share/php') in wp-content/plugins/af-companion/inc/class-aftc-wxr-importer.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: one click, widgets, content, gutenberg, demo...
af-companion/af-companion.php Passed 13 tests
The primary PHP file in "AF Companion - Build Stylish WordPress Websites in Minutes – No Coding, Just Click and Go! Starter Sites Importer for WordPress" version 1.2.7 is used by WordPress to initiate all plugin functionality
114 characters long description:
Build Stylish WordPress Websites in Minutes – No Coding, Just Click and Go! Starter Sites Importer for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,898 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 888 | 1,215 | 3,084 |
CSS | 1 | 68 | 18 | 631 |
JavaScript | 2 | 65 | 58 | 183 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 40.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 112 | |
▷ Static methods | 25 | 22.32% |
▷ Public methods | 60 | 53.57% |
▷ Protected methods | 34 | 30.36% |
▷ Private methods | 18 | 16.07% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/afthemes.png | 7.40KB | 4.22KB | ▼ 43.02% |