Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/favorite-post/favorite-post-widget.php+109
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.55ms] Passed 4 tests
An overview of server-side resources used by Favorite Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.06 ▼35.87 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.25 ▼47.52 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.76 ▼39.01 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.93 ▼87.78 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.87 ▼32.67 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_favorite_post |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_wedevs-favorite-post |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Favorite Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲151 | 13.60 ▼0.77 | 5.01 ▲3.11 | 42.10 ▼7.63 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.95 | 110.84 ▼3.68 | 43.07 ▼1.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.10 ▲4.49 | 35.99 ▲3.78 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.16 ▼0.18 | 639.12 ▼39.04 | 56.98 ▲0.88 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.03 | 99.57 ▼7.18 | 40.40 ▼5.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/favorite-post/favorite-post-widget.php+109
Function create_function() is deprecated
- Zombie tables were found after uninstall: 1 table
- wp_favorite_post
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_wedevs-favorite-post
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/favorite-post/favorite-post-widget.php:8
- > 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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: favorite, favorite post, bookmark
favorite-post/favorite-post.php Passed 13 tests
The primary PHP file in "Favorite Post" version 1.0 is used by WordPress to initiate all plugin functionality
19 characters long description:
Favorite your posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin287 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 88 | 207 | 223 |
JavaScript | 1 | 16 | 8 | 38 |
CSS | 1 | 3 | 0 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/stars16.png | 2.05KB | 1.52KB | ▼ 26.05% |