Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.57ms] Passed 4 tests
A check of server-side resources used by Brand Demo Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.40 ▼9.16 |
Dashboard /wp-admin | 3.32 ▼0.02 | 46.83 ▼25.43 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.37 ▼6.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.26 ▼9.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.12 ▼4.33 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Brand Demo Import
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.30 ▼1.35 | 1.88 ▼0.28 | 40.77 ▼2.65 |
Dashboard /wp-admin | 2,233 ▲30 | 5.84 ▼0.04 | 97.22 ▼19.30 | 42.90 ▼1.49 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.07 ▲0.07 | 36.72 ▲0.43 | 36.28 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,558 ▲13 | 23.34 ▲0.13 | 670.57 ▲32.29 | 54.93 ▼1.06 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.24 ▲0.02 | 101.93 ▲8.42 | 46.82 ▲5.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/brand-demo-import/brand-demo-import.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/class-wp-customize-setting.php' (include_path='.:/usr/share/php') in wp-content/plugins/brand-demo-import/inc/CustomizerOption.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function BDI\\esc_html_e() in wp-content/plugins/brand-demo-import/views/plugin-page.php:14
- > PHP Warning
require_once(ABSPATHwp-includes/class-wp-customize-setting.php): failed to open stream: No such file or directory in wp-content/plugins/brand-demo-import/inc/CustomizerOption.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/brand-demo-import/inc/CustomizerOption.php on line 14
- > 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 96% from 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
2 plugin tags: importer, demo
brand-demo-import/brand-demo-import.php 92% from 13 tests
The main PHP script in "Brand Demo Import" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected3,033 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 614 | 984 | 2,531 |
CSS | 1 | 69 | 10 | 309 |
JavaScript | 1 | 50 | 68 | 193 |
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.42 |
Average class complexity | 35.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 5.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 112 | |
▷ Static methods | 27 | 24.11% |
▷ Public methods | 93 | 83.04% |
▷ Protected methods | 2 | 1.79% |
▷ Private methods | 17 | 15.18% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin