Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/wpmdb/includes/class-wpmdb_donate.php+48
Undefined index: status
Server metrics [RAM: ▼1.86MB] [CPU: ▼52.51ms] Passed 4 tests
Server-side resources used by WPMDB
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 5.46 ▼37.36 |
Dashboard /wp-admin | 2.15 ▼1.16 | 7.84 ▼40.92 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 7.23 ▼44.95 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 7.81 ▼86.79 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.35 ▼30.71 |
WP IMDB /wp-admin/options-general.php?page=wpmdb | 2.15 | 6.51 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WPMDB
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.65 ▲0.30 | 1.77 ▼0.72 | 44.49 ▲1.71 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▼0.03 | 99.10 ▲11.11 | 40.43 ▲0.48 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.05 ▲0.10 | 38.98 ▲4.58 | 38.44 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,703 | 25.85 ▲2.22 | 936.32 ▲316.62 | 65.45 ▲19.54 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.25 ▲0.09 | 98.67 ▼7.60 | 48.04 ▲1.85 |
WP IMDB /wp-admin/options-general.php?page=wpmdb | 868 | 2.08 | 25.71 | 32.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wpmdb/includes/class-wpmdb_donate.php+48
Undefined index: status
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpmdb
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpmdb/includes/class-wpmdb_donate.php+48
Undefined index: status
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpmdb
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpmdb/includes/class-wpmdb_donate.php+49
Undefined index: token
- > GET request to /wp-admin/options-general.php?page=wpmdb
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpmdb/includes/class-wpmdb_donate.php+50
Undefined index: page
- > GET request to /wp-admin/options-general.php?page=wpmdb
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPMDB_Ajax::search() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpmdb
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wpmdb/includes/class-wpmdb_ajax.php+37
Undefined index: id
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 take a closer look at the following
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wpmdb/templates/index.php
- > /wp-content/plugins/wpmdb/assets/index.php
- > /wp-content/plugins/wpmdb/wpmdb.php
- > /wp-content/plugins/wpmdb/includes/index.php
- > /wp-content/plugins/wpmdb/includes/class-wpmdb.php
- > /wp-content/plugins/wpmdb/assets/img/index.php
- > /wp-content/plugins/wpmdb/languages/index.php
- > /wp-content/plugins/wpmdb/includes/class-wpmdb_metabox.php
- > /wp-content/plugins/wpmdb/templates/search_result.php
- > /wp-content/plugins/wpmdb/assets/js/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: imdb
wpmdb/wpmdb.php Passed 13 tests
The entry point to "WPMDB" version 1.0 is a PHP file that has certain tags in its header comment area
111 characters long description:
Get information from IMDB and set to your post, just active plugin, use shortcodes and enjoy from free deatils.
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
Good job! No executable or dangerous file extensions detected1,179 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 112 | 161 | 730 |
PO File | 1 | 63 | 66 | 176 |
LESS | 1 | 22 | 0 | 113 |
CSS | 1 | 0 | 1 | 95 |
JavaScript | 1 | 7 | 0 | 65 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 27 | 72.97% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 119.98KB | 42.71KB | ▼ 64.40% |
assets/img/coffee-cup.png | 5.10KB | 2.83KB | ▼ 44.62% |
screenshot-1.png | 69.11KB | 26.78KB | ▼ 61.25% |