Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼153.09ms] Passed 4 tests
Analyzing server-side resources used by F12-Profiler
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 25.81 ▼0.89 |
Dashboard /wp-admin | 3.19 ▲0.12 | 39.60 ▼2.62 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 32.75 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 72.90 ▼608.24 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 26.52 ▼0.59 |
F12-Profiler /wp-admin/tools.php?page=f12p | 3.12 | 23.01 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by F12-Profiler
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲97 | 15.67 ▼0.05 | 5.42 ▼0.38 | 76.45 ▼1.48 |
Dashboard /wp-admin | 2,939 ▲47 | 6.10 ▼0.08 | 117.32 ▼12.24 | 167.30 ▼5.95 |
Posts /wp-admin/edit.php | 2,747 ▲4 | 3.24 ▲0.00 | 63.13 ▼0.82 | 139.87 ▲6.35 |
Add New Post /wp-admin/post-new.php | 3,812 ▲53 | 18.13 ▲0.36 | 443.50 ▲4.89 | 157.11 ▼4.87 |
Media Library /wp-admin/upload.php | 1,756 ▲4 | 5.57 ▲0.07 | 145.62 ▼2.54 | 181.36 ▼4.16 |
F12-Profiler /wp-admin/tools.php?page=f12p | 1,215 | 2.36 | 53.38 | 132.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/f12-profiler/includes/class.Helper.php
- > /wp-content/plugins/f12-profiler/includes/class.TimeTracker.php
- > /wp-content/plugins/f12-profiler/includes/class.FilterWrapper.php
- > /wp-content/plugins/f12-profiler/includes/class.HardwareController.php
- > /wp-content/plugins/f12-profiler/includes/class.AdminPage.php
- > /wp-content/plugins/f12-profiler/f12-profiler.php
- > /wp-content/plugins/f12-profiler/includes/class.Template.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/f12-profiler/templates/hardware.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/f12-profiler/templates/admin.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/tools.php?page=f12p
- > Network (severe)
wp-content/plugins/f12-profiler/assets/Forge12-Bildmarke.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #1 in f12-profiler/assets to your readme.txt
- Requires php: Version not formatted correctly
f12-profiler/f12-profiler.php 92% from 13 tests
The primary PHP file in "F12-Profiler" version 1.3.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected11,725 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,219 | 2,231 | 10,766 |
PHP | 10 | 152 | 348 | 681 |
CSS | 3 | 58 | 19 | 278 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 12 | 32.43% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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