Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▼2.28ms] Passed 4 tests
Analyzing server-side resources used by Nowy Widget for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 48.94 ▲0.34 |
Dashboard /wp-admin | 3.31 ▲0.01 | 56.47 ▼6.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.60 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 108.87 ▼1.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 41.77 ▲1.99 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Nowy Widget for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲16 | 13.08 ▼0.09 | 5.24 ▲2.90 | 43.66 ▼1.04 |
Dashboard /wp-admin | 2,225 ▲19 | 5.79 ▲0.96 | 102.92 ▼2.19 | 36.87 ▼3.00 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.00 | 37.23 ▼2.85 | 36.01 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,547 ▲11 | 23.05 ▼0.07 | 626.72 ▼20.64 | 66.99 ▲17.64 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▼0.01 | 102.57 ▼7.21 | 44.12 ▲1.85 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/nowy-widget/nowy-widget-shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/nowy-widget/setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nowy-widget/nowy-widget.php:77
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: social media content, nowy widget plugin, image gallery showcase, nowy posts gallery, shortcode...
nowy-widget/nowy-widget.php Passed 13 tests
"Nowy Widget for WordPress" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
This plugin prints "Nowy Widget" inside an admin page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin15,790 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 130 | 11 | 9,283 |
JavaScript | 3 | 198 | 170 | 5,165 |
PHP | 3 | 58 | 81 | 943 |
SVG | 1 | 0 | 0 | 399 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/place-marker.png | 1.16KB | 1.15KB | ▼ 1.43% |
assets/location-place-white.png | 0.68KB | 0.65KB | ▼ 3.75% |
assets/novylogo-2-min.png | 7.58KB | 7.33KB | ▼ 3.30% |
assets/Heart2x.png | 1.38KB | 1.32KB | ▼ 3.84% |
assets/default-head.png | 8.97KB | 1.72KB | ▼ 80.78% |