Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.22MB] [CPU: ▼21.99ms] Passed 4 tests
A check of server-side resources used by FNS Favorite post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.23 ▼1.30 |
Dashboard /wp-admin | 3.08 ▼0.26 | 24.50 ▼35.50 |
Posts /wp-admin/edit.php | 3.22 ▼0.14 | 26.63 ▼17.86 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.42 | 62.94 ▼30.99 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 27.54 ▼3.60 |
FNS Favorite posts /wp-admin/options-general.php?page=fns-favorite-post | 3.27 | 33.07 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 15 new options
New WordPress options |
---|
ffp_posttype |
widget_recent-posts |
ffp_add |
widget_theysaidso_widget |
widget_ffp_widget |
widget_recent-comments |
ffp_no |
ffp_version |
ffp_icon |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
FNS Favorite post: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲133 | 13.41 ▼0.88 | 8.18 ▲6.49 | 41.57 ▲4.66 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▲0.03 | 84.99 ▼10.66 | 40.30 ▼1.02 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.03 | 33.76 ▼1.66 | 33.90 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.19 ▲0.10 | 657.54 ▼12.25 | 52.18 ▼11.47 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.03 | 96.39 ▼8.23 | 42.37 ▼2.17 |
FNS Favorite posts /wp-admin/options-general.php?page=fns-favorite-post | 905 | 2.00 | 23.12 | 34.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 15 options in the database
- ffp_remove
- widget_recent-comments
- widget_ffp_widget
- widget_theysaidso_widget
- widget_recent-posts
- ffp_no
- ffp_icon
- ffp_posttype
- db_upgraded
- ffp_hide
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fns-favorite-post/ffp-admin-page.php
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 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== fns-favorite-post ===
)
fns-favorite-post/fns-favorite-post.php 85% from 13 tests
The entry point to "FNS Favorite post" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path must begin with a forward slash character ("/")
- Domain Path: The domain path should use only dashes and lowercase characters ("")
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 plugin5,388 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 0 | 13 | 2,331 |
PHP | 2 | 30 | 30 | 285 |
JavaScript | 1 | 7 | 1 | 101 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin