Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.54ms] Passed 4 tests
Server-side resources used by My Favorites
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.89 ▼2.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.19 ▼6.42 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.96 ▼5.98 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.38 ▼7.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.20 ▲3.38 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for My Favorites
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲116 | 13.78 ▼0.80 | 8.06 ▲5.94 | 44.54 ▲0.37 |
Dashboard /wp-admin | 2,206 ▲15 | 5.80 ▼0.09 | 107.04 ▲3.16 | 39.54 ▼3.02 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.03 | 39.96 ▼2.15 | 34.64 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.38 ▲5.67 | 686.91 ▲62.71 | 55.27 ▼0.68 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.21 ▼0.07 | 100.32 ▼1.10 | 44.21 ▲0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
my-favorites/my-favorites.php Passed 13 tests
This is the main PHP file of "My Favorites" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Save user's favorite posts and list them.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,044 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 50 | 41 | 394 |
CSS | 3 | 15 | 28 | 298 |
JavaScript | 2 | 35 | 58 | 232 |
Markdown | 1 | 29 | 0 | 60 |
PO File | 1 | 9 | 11 | 42 |
SVG | 1 | 0 | 0 | 18 |
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.32 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 7 | 43.75% |
▷ Public methods | 16 | 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 | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin