Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼314.67ms] 75% from 4 tests
Analyzing server-side resources used by Access Demo Importer
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 3,433.92ms on /wp-admin/themes.php?page=demo-importer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 53.06 ▲1.09 |
Dashboard /wp-admin | 3.46 ▲0.05 | 32.24 ▼1.01 |
Posts /wp-admin/edit.php | 3.68 ▲0.05 | 36.53 ▲1.38 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 93.69 ▼1,248.60 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 22.94 ▼10.15 |
Install Demos /wp-admin/themes.php?page=demo-importer | 3.47 | 3,433.92 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Access Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲60 | 15.89 ▼0.17 | 6.60 ▲0.90 | 1.92 ▼1.37 |
Dashboard /wp-admin | 2,919 ▲58 | 6.16 ▼0.02 | 115.07 ▼18.29 | 155.67 ▼1.99 |
Posts /wp-admin/edit.php | 2,722 ▲31 | 3.24 ▲0.00 | 61.34 ▼3.38 | 139.96 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,687 ▼24 | 18.25 ▼2.51 | 387.14 ▼2.41 | 150.10 ▼6.69 |
Media Library /wp-admin/upload.php | 1,729 ▲31 | 5.53 ▲0.04 | 158.09 ▲23.41 | 182.31 ▼4.86 |
Install Demos /wp-admin/themes.php?page=demo-importer | 1,128 | 3.04 | 55.60 | 135.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/access-demo-importer/inc/importers/customizer-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: widgets, demo, import, content, theme options...
access-demo-importer/access-demo-importer.php 92% from 13 tests
The main PHP script in "Access Demo Importer" version 1.0.9 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,099 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 794 | 766 | 2,771 |
CSS | 1 | 40 | 56 | 900 |
JavaScript | 1 | 176 | 72 | 428 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 6.94 |
▷ 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 | 1 | 8.33% |
Methods | 97 | |
▷ Static methods | 11 | 11.34% |
▷ Public methods | 89 | 91.75% |
▷ Protected methods | 3 | 3.09% |
▷ Private methods | 5 | 5.15% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
There are no PNG files in this plugin