Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.22ms] Passed 4 tests
Analyzing server-side resources used by Recommendations TasteDive
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 46.52 ▲5.41 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.71 ▼25.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.16 ▼6.26 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.96 ▼10.54 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.19 ▲1.66 |
TasteDive /wp-admin/options-general.php?page=taste-dive-settings | 3.30 | 32.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tastedive_cache |
New WordPress options |
---|
taste_dive_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Recommendations TasteDive
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲38 | 14.37 ▲0.09 | 1.87 ▼0.12 | 40.01 ▼2.67 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.08 | 92.36 ▲0.64 | 40.61 ▼6.05 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.03 | 39.73 ▼1.98 | 34.53 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.46 ▼0.15 | 683.39 ▼29.14 | 62.04 ▲7.33 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.19 ▼0.00 | 97.83 ▼4.00 | 46.13 ▼0.90 |
TasteDive /wp-admin/options-general.php?page=taste-dive-settings | 833 | 2.02 | 24.63 | 32.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- taste_dive_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/recommendations-tastedive/tests/WikiImageTest.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/recommendations-tastedive/view/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/recommendations-tastedive/view/recommendations.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 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: authors, games, recommendations, tastedive, movies...
recommendations-tastedive/taste-dive.php 85% from 13 tests
The principal PHP file in "Recommendations TasteDive" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recommendations-tastedive.php" instead of "taste-dive.php")
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
Success! There were no dangerous files found in this plugin417 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 98 | 193 | 399 |
CSS | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 3 | 75.00% |
Methods | 23 | |
▷ Static methods | 20 | 86.96% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin