Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.26ms] Passed 4 tests
A check of server-side resources used by Beni Demo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.83 ▼6.43 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.28 ▲0.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.07 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.77 ▲5.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.78 ▼5.18 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
new_site_activate |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Beni Demo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,748 ▲13 | 13.12 ▼1.17 | 1.86 ▲0.09 | 8.78 ▼36.92 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▲0.01 | 100.60 ▼11.38 | 41.81 ▼0.73 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.01 | 35.07 ▲0.30 | 33.70 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.31 ▼4.66 | 608.99 ▼63.10 | 65.01 ▲5.03 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.01 | 98.49 ▼1.21 | 42.62 ▼2.58 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- new_site_activate
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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 | 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/beni-demo/beni-demo.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/beni-demo/inc/portico/widgets/widget.php:22
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Requires at least: Invalid plugin version format
beni-demo/beni-demo.php Passed 13 tests
The main file in "Beni Demo" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
Beni Demo creates necessary pages & serves as a demo importer of images & widgets for MobeenRaheem's themes.
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
Everything looks great! No dangerous files found in this plugin159 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 21 | 31 | 159 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 14.00 |
▷ Minimum method complexity | 14.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/portico/images/brand4.png | 2.68KB | 2.65KB | ▼ 1.24% |
inc/portico/images/brand2.png | 2.93KB | 2.94KB | 0.00% |
inc/portico/images/brand1.png | 2.38KB | 2.37KB | 0.37% |
inc/portico/images/brand3.png | 3.31KB | 3.27KB | ▼ 1.21% |