Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼271.59ms] Passed 4 tests
Analyzing server-side resources used by PixFields
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.15 ▲0.32 | 39.20 ▲6.74 |
Dashboard /wp-admin | 3.36 ▲0.31 | 46.95 ▲7.34 |
Posts /wp-admin/edit.php | 3.41 ▲0.31 | 46.64 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.24 | 95.31 ▼1,087.74 |
Media Library /wp-admin/upload.php | 3.30 ▲0.30 | 31.81 ▼6.79 |
PixFields /wp-admin/options-general.php?page=pixfields | 3.28 | 30.17 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pixfields_settings |
Browser metrics Passed 4 tests
PixFields: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 16.22 ▲0.63 | 7.84 ▲0.03 | 50.43 ▲2.59 |
Dashboard /wp-admin | 2,935 ▲82 | 5.96 ▲0.10 | 132.38 ▼0.60 | 108.36 ▲5.44 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.69 ▼0.00 | 61.48 ▼4.28 | 92.10 ▼1.91 |
Add New Post /wp-admin/post-new.php | 2,029 ▲378 | 19.10 ▲1.68 | 370.68 ▲6.92 | 131.74 ▲23.08 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 4.99 ▼0.02 | 153.34 ▲4.47 | 108.77 ▼8.75 |
PixFields /wp-admin/options-general.php?page=pixfields | 1,245 | 2.60 | 64.81 | 76.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- pixfields_settings
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'pixfields' not found in wp-content/plugins/pixfields/views/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pixfields/settings/fields_manager.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pixfields/settings/general.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pixfields/core/defaults.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: fields, metadata, custom
pixfields/pixfields.php 85% from 13 tests
The main PHP file in "PixFields" ver. 0.7.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin6,400 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,020 | 22 | 2,483 |
PHP | 48 | 589 | 1,123 | 1,779 |
Sass | 15 | 60 | 26 | 1,479 |
SVG | 1 | 0 | 0 | 399 |
JavaScript | 2 | 56 | 86 | 217 |
Markdown | 1 | 7 | 0 | 26 |
XML | 1 | 0 | 0 | 11 |
Ruby | 2 | 2 | 3 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 29 | 20.00% |
▷ Public methods | 128 | 88.28% |
▷ Protected methods | 17 | 11.72% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin