Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼136.61ms] Passed 4 tests
Server-side resources used by FAT Editor Add On
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.18 | 37.25 ▲15.43 |
Dashboard /wp-admin | 3.14 ▲0.08 | 46.04 ▲0.79 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 40.94 ▼0.90 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 93.19 ▼542.71 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 32.88 ▼3.62 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
FAT Editor Add On: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 16.19 ▲0.62 | 9.29 ▼1.25 | 50.49 ▲6.72 |
Dashboard /wp-admin | 3,014 ▲83 | 6.59 ▲0.64 | 145.87 ▲4.90 | 117.56 ▲9.46 |
Posts /wp-admin/edit.php | 2,783 ▲44 | 2.78 ▲0.06 | 67.80 ▲2.24 | 98.08 ▲12.37 |
Add New Post /wp-admin/post-new.php | 1,715 ▼342 | 18.64 ▼0.67 | 371.02 ▼8.46 | 128.42 ▲12.64 |
Media Library /wp-admin/upload.php | 1,851 ▲44 | 5.22 ▲0.21 | 126.62 ▼14.65 | 116.52 ▼11.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fat-editor-addon/fat-editor-addon.php
- > /wp-content/plugins/fat-editor-addon/templates/field-tpml.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: atts in wp-content/plugins/fat-editor-addon/templates/vimeo.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-editor-addon/templates/video-embed.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/fat-editor-addon/templates/social-share.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-editor-addon/templates/vimeo.php:13
- > PHP Notice
Undefined variable: atts in wp-content/plugins/fat-editor-addon/templates/video-embed.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-editor-addon/templates/youtube.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fat-editor-addon/templates/video-embed.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fat-editor-addon/templates/vimeo.php on line 11
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: twitter, editor, video embed, youtube, pinterest...
fat-editor-addon/fat-editor-addon.php 92% from 13 tests
This is the main PHP file of "FAT Editor Add On" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,421 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 47 | 47 | 539 |
JavaScript | 6 | 71 | 61 | 471 |
CSS | 3 | 35 | 16 | 407 |
Markdown | 1 | 2 | 0 | 4 |
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.57 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 85.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 7.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/twitter-icon.png | 3.00KB | 1.93KB | ▼ 35.77% |
assets/images/image-icon.png | 3.31KB | 0.80KB | ▼ 75.86% |
assets/images/highlight-icon.png | 2.67KB | 1.48KB | ▼ 44.59% |
assets/images/video-player-icon.png | 1.84KB | 0.65KB | ▼ 64.49% |