Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.69ms] Passed 4 tests
Analyzing server-side resources used by File Relative Path
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.89 ▼9.86 |
Dashboard /wp-admin | 3.36 ▲0.02 | 46.21 ▼16.00 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.35 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.65 ▼5.70 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.04 ▲3.88 |
File Relative Path /wp-admin/tools.php?page=file-relative-path | 3.28 | 29.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
frp_images |
theysaidso_admin_options |
frp_video |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
frp_iframe |
frp_audio |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for File Relative Path
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.72 ▲0.45 | 1.72 ▲0.01 | 37.00 ▼4.33 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▼0.02 | 85.70 ▼3.96 | 38.14 ▲0.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.06 | 39.39 ▼1.74 | 35.78 ▲4.87 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 22.99 ▲4.86 | 622.63 ▼13.37 | 56.09 ▼44.54 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.14 ▼0.09 | 98.28 ▼10.23 | 45.33 ▼24.25 |
File Relative Path /wp-admin/tools.php?page=file-relative-path | 852 | 2.00 | 23.21 | 33.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'frp_uninstallation' not found or invalid function name
- This plugin does not fully uninstall, leaving 10 options in the database
- frp_images
- db_upgraded
- frp_video
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- frp_audio
- frp_iframe
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/file-relative-path/admin/inc/frp-header.php
- > /wp-content/plugins/file-relative-path/function/server-host.php
- > /wp-content/plugins/file-relative-path/admin/inc/frp-support.php
- > /wp-content/plugins/file-relative-path/admin/main.php
- > /wp-content/plugins/file-relative-path/admin/inc/frp-uninstallation.php
- > /wp-content/plugins/file-relative-path/admin/inc/frp-settings.php
- > /wp-content/plugins/file-relative-path/admin/define.php
- > /wp-content/plugins/file-relative-path/admin/inc/frp-how-it-works.php
- > /wp-content/plugins/file-relative-path/file-relative-path.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-5.jpg) image not found
file-relative-path/file-relative-path.php 85% from 13 tests
Analyzing the main PHP file in "File Relative Path" version 1.0
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
- Git Repository: An alternative Git repository was detected
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin430 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 198 | 80 | 409 |
CSS | 1 | 6 | 6 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
PNG images were not found in this plugin