Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.69ms] Passed 4 tests
Analyzing server-side resources used by Friday News Lite Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 28.71 ▲3.12 |
Dashboard /wp-admin | 3.09 ▲0.03 | 48.48 ▲1.56 |
Posts /wp-admin/edit.php | 3.15 ▲0.03 | 46.53 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 88.82 ▼567.15 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 31.38 ▲0.99 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Friday News Lite Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.79 ▲0.19 | 7.88 ▼0.81 | 47.27 ▼4.57 |
Dashboard /wp-admin | 2,967 ▲30 | 5.91 ▼0.03 | 146.78 ▼0.70 | 116.94 ▼0.79 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.69 ▲0.01 | 72.24 ▲4.29 | 92.22 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,604 ▼2,049 | 18.82 ▼0.06 | 393.22 ▼101.54 | 119.22 ▲3.52 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.01 | 160.92 ▲2.06 | 122.88 ▼6.64 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'FT_PATHinc/widgets/social/tweets-list.php' (include_path='.:/usr/share/php') in wp-content/plugins/friday-news-lite-toolkit/inc/widget.php on line 3
- > PHP Warning
require(FT_PATHinc/fields/metabox/quote.php): failed to open stream: No such file or directory in wp-content/plugins/friday-news-lite-toolkit/inc/field.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/grid.php:3
- > PHP Warning
Use of undefined constant FT_PATH - assumed 'FT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/friday-news-lite-toolkit/inc/widget.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/dropcaps.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/accordions.php:3
- > PHP Warning
Use of undefined constant FT_PATH - assumed 'FT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/friday-news-lite-toolkit/inc/field.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/gallery.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friday-news-lite-toolkit/inc/widgets/social/follow-us.php:3
- > PHP Fatal error
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 93% 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
There were not plugin tags detected
friday-news-lite-toolkit/friday-news-lite-toolkit.php 85% from 13 tests
"Friday News Lite Toolkit" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.8")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin2,160 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 233 | 97 | 1,719 |
JavaScript | 2 | 5 | 0 | 395 |
CSS | 2 | 0 | 0 | 46 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 13 | 24.53% |
▷ Public methods | 51 | 96.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.77% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 1.57MB with 0.87MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layouts/product.png | 707.55KB | 289.15KB | ▼ 59.13% |
assets/images/tinymce.png | 1.77KB | 0.94KB | ▼ 46.94% |
assets/images/layouts/shop.png | 901.64KB | 361.61KB | ▼ 59.89% |