Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/this-page-needs-files/this-page-needs-files.php+95
Undefined index: tpnf-action-reactivate
Server metrics [RAM: ▼1.89MB] [CPU: ▼341.23ms] Passed 4 tests
Server-side resources used by This page needs files
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 7.71 ▼13.52 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.48 ▼34.96 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 5.70 ▼33.99 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 4.46 ▼1,271.26 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 7.55 ▼24.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 4 new options
New WordPress options |
---|
BE_MCH_TPNF_MSG |
BE_MCH_TPNF_WORKING |
BE_MCH_TPNF_EMERGENCY |
BE_MCH_TPNF_ACTIVATION |
Browser metrics Passed 4 tests
This is an overview of browser requirements for This page needs files
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,695 ▲89 | 15.95 ▲0.35 | 8.40 ▼0.27 | 45.91 ▼0.64 |
Dashboard /wp-admin | 2,963 ▲107 | 6.05 ▲0.24 | 134.60 ▲0.18 | 98.29 ▼8.16 |
Posts /wp-admin/edit.php | 2,710 ▲7 | 2.71 ▲0.01 | 67.24 ▲1.74 | 91.05 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,930 ▼108 | 23.93 ▲4.63 | 379.48 ▼1.53 | 123.94 ▲12.92 |
Media Library /wp-admin/upload.php | 1,776 ▲4 | 5.07 ▼0.01 | 144.90 ▼0.18 | 113.12 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/this-page-needs-files/this-page-needs-files.php+95
Undefined index: tpnf-action-reactivate
Smoke tests 75% from 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 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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/this-page-needs-files/includes/vars.php:45
- > PHP Fatal error
Uncaught Error: Class 'BE_MCH_TPNF_VARS' not found in wp-content/plugins/this-page-needs-files/includes/emergency.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: stylesheet, css, page, js, file...
this-page-needs-files/this-page-needs-files.php Passed 13 tests
The primary PHP file in "This page needs files" version 1.0.7 is used by WordPress to initiate all plugin functionality
102 characters long description:
Allow to include urls to javascript and css files inside the HTML header on a page/post specifc basis.
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
No dangerous file extensions were detected1,106 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 186 | 97 | 797 |
JavaScript | 2 | 67 | 10 | 259 |
CSS | 1 | 9 | 2 | 50 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 13 | 61.90% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 21 | 58.33% |
▷ Class constants | 15 | 41.67% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin