Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▲381.78ms] 50% from 4 tests
A check of server-side resources used by Deepi
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,987.40ms on /wp-admin/admin.php?page=deepi_settings)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 381.78ms on /wp-admin/admin.php?page=deepi_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 1,552.63 ▲1,508.43 |
Dashboard /wp-admin | 3.43 ▲0.13 | 55.01 ▲5.21 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 63.25 ▲8.55 |
Add New Post /wp-admin/post-new.php | 4.73 ▼1.16 | 2,430.72 ▲2,321.96 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 43.11 ▲4.92 |
Deepi /wp-admin/admin.php?page=Deepi | 3.32 | 34.22 |
Settings /wp-admin/admin.php?page=deepi_settings | 3.35 | 2,987.40 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_deepi |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Deepi
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.60 ▼0.76 | 11.72 ▲9.89 | 39.22 ▼7.14 |
Dashboard /wp-admin | 2,219 ▲45 | 5.54 ▼0.02 | 81.89 ▼10.28 | 38.83 ▼1.42 |
Posts /wp-admin/edit.php | 2,127 ▲22 | 1.98 ▲0.00 | 36.71 ▼5.86 | 35.26 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.11 ▼0.08 | 694.28 ▲13.51 | 62.58 ▲5.46 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.20 ▲0.02 | 103.07 ▲8.06 | 40.54 ▼3.14 |
Deepi /wp-admin/admin.php?page=Deepi | 994 | 1.99 | 27.76 | 34.88 |
Settings /wp-admin/admin.php?page=deepi_settings | 947 | 2.01 | 24.41 | 28.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/deepi/searchbox.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deepi/back/menu.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function deepi_all_to_index() in wp-content/plugins/deepi/back/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deepi/functions.php:326
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/deepi/script.php:4
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: ai, conceptual, search
deepi/deepi.php Passed 13 tests
The main PHP script in "Deepi" version 1.10.17 is automatically included on every request by WordPress
137 characters long description:
Upgrade your site's "lexical search" to Deepi's "Conceptual Search", Take advantage of the latest "artificial intelligence" technologies.
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 plugin1,448 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 163 | 82 | 828 |
PO File | 1 | 82 | 80 | 277 |
Markdown | 4 | 86 | 0 | 151 |
CSS | 4 | 8 | 13 | 87 |
SVG | 1 | 0 | 0 | 86 |
JavaScript | 5 | 2 | 3 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/logo.png | 4.64KB | 2.76KB | ▼ 40.41% |
resources/img/project.png | 83.77KB | 27.99KB | ▼ 66.59% |
resources/img/keys.png | 70.51KB | 24.53KB | ▼ 65.21% |