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.03MB] [CPU: ▼5.73ms] Passed 4 tests
Analyzing server-side resources used by Demo Awesome
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.93 ▲1.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.92 ▼5.96 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.57 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.15 ▼19.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 39.41 ▲2.73 |
Demo Awesome /wp-admin/themes.php?page=demo-awesome-importer | 3.39 | 446.42 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Demo Awesome
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.28 ▼0.01 | 1.69 ▼0.02 | 29.41 ▼12.07 |
Dashboard /wp-admin | 2,231 ▲54 | 5.56 ▼0.13 | 86.75 ▼4.54 | 78.09 ▲34.64 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.12 ▲0.11 | 41.22 ▲5.39 | 39.75 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.31 ▲0.27 | 718.46 ▲73.95 | 61.39 ▲8.26 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.13 ▼0.04 | 95.79 ▼9.72 | 77.63 ▲33.87 |
Demo Awesome /wp-admin/themes.php?page=demo-awesome-importer | 1,883 | 2.33 | 32.57 | 47.64 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: demo_awesome_get_list_demos in wp-content/plugins/demo-awesome/inc/admin/demo-browser.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/demo-awesome/inc/admin/importer/class-extends-customize-demo-importer-setting.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/demo-awesome/inc/admin/class-demo-awesome-admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/demo-awesome/inc/admin/demo-browser.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
7 plugin tags: theme demo, demos, one-click demo import, data importer, theme4press demo...
demo-awesome/demo-awesome.php Passed 13 tests
This is the main PHP file of "Demo Awesome" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
136 characters long description:
Import the Theme4Press theme demo content including theme settings, menus, widgets, sliders, and much more with just one click. Awesome!
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 plugin5,208 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 609 | 729 | 3,129 |
JavaScript | 1 | 304 | 143 | 1,284 |
CSS | 2 | 146 | 57 | 757 |
SVG | 1 | 12 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 5.53 |
▷ 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 | 110 | |
▷ Static methods | 14 | 12.73% |
▷ Public methods | 101 | 91.82% |
▷ Protected methods | 1 | 0.91% |
▷ Private methods | 8 | 7.27% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/images/logo.png | 0.62KB | 0.62KB | 0.00% |
inc/admin/images/loader.png | 10.11KB | 0.13KB | ▼ 98.75% |