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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼176.86ms] Passed 4 tests
A check of server-side resources used by Fastnews Light Toolkit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.63 ▲13.17 |
Dashboard /wp-admin | 3.06 ▲0.01 | 37.20 ▼10.25 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.20 ▼3.72 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 94.58 ▼687.86 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 34.68 ▼5.60 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fastnews Light Toolkit
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.21 ▲0.57 | 12.08 ▲1.82 | 47.77 ▲0.98 |
Dashboard /wp-admin | 2,964 ▲30 | 5.92 ▼0.02 | 146.04 ▼2.79 | 109.91 ▲2.62 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.01 | 84.34 ▲10.48 | 89.79 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.85 ▲0.10 | 413.88 ▲15.43 | 106.05 ▼4.28 |
Media Library /wp-admin/upload.php | 1,807 ▲59 | 5.04 ▲0.06 | 156.33 ▼8.98 | 113.89 ▼13.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require(FLT_PATHinc/widgets/post/post_list_small.php): failed to open stream: No such file or directory in wp-content/plugins/fastnews-light-toolkit/inc/widget.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastnews-light-toolkit/inc/widgets/post/post_list_small.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastnews-light-toolkit/inc/widgets/post/post_entry_list_2.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastnews-light-toolkit/inc/widgets/intro/feedburner.php:3
- > PHP Fatal error
require(): Failed opening required 'FLT_PATHinc/widgets/post/post_list_small.php' (include_path='.:/usr/share/php') in wp-content/plugins/fastnews-light-toolkit/inc/widget.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fastnews-light-toolkit/fastnews-light-toolkit.php:20
- > PHP Warning
Use of undefined constant FLT_PATH - assumed 'FLT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fastnews-light-toolkit/inc/widget.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastnews-light-toolkit/inc/widgets/post/post_list_carousel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastnews-light-toolkit/inc/widgets/post/post_flexslider.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastnews-light-toolkit/inc/widgets/intro/mailchimp_subscribe.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
fastnews-light-toolkit/fastnews-light-toolkit.php 92% from 13 tests
The principal PHP file in "Fastnews Light Toolkit" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.8" instead of "4.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected925 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 110 | 16 | 925 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 8 | 38.10% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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