Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/fantasktic/fantasktic.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; fantasktic_fix_submit has a deprecated constructor
Server metrics [RAM: ▼0.02MB] [CPU: ▼308.80ms] Passed 4 tests
Analyzing server-side resources used by Fantasktic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 59.13 ▲6.43 |
Dashboard /wp-admin | 3.41 ▲0.01 | 31.84 ▼0.62 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.54 ▼55.35 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 96.11 ▼1,173.65 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.00 ▼5.58 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
frf_plugin_nonce |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fantasktic
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲24 | 15.97 ▲0.29 | 6.31 ▲0.15 | 2.23 ▼0.82 |
Dashboard /wp-admin | 2,907 ▲46 | 6.02 ▼0.13 | 163.77 ▲34.15 | 180.23 ▲18.25 |
Posts /wp-admin/edit.php | 2,669 ▼22 | 3.13 ▼0.10 | 62.78 ▼2.30 | 220.75 ▲71.33 |
Add New Post /wp-admin/post-new.php | 1,678 ▼32 | 17.00 ▼4.46 | 431.97 ▼11.58 | 197.96 ▲36.76 |
Media Library /wp-admin/upload.php | 1,712 ▲17 | 5.50 ▼0.03 | 123.24 ▼33.65 | 251.76 ▲52.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- frf_plugin_nonce
Smoke tests 50% 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)
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fantasktic/menu-page.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/fantasktic/fantasktic.php:13
- > PHP Warning
Use of undefined constant FRF_PLUGIN_LOCAL - assumed 'FRF_PLUGIN_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fantasktic/menu-page.php on line 10
- > PHP Warning
Use of undefined constant FRF_PLUGIN_LOCAL - assumed 'FRF_PLUGIN_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fantasktic/menu-page.php on line 3
- > PHP Warning
Use of undefined constant FRF_SITE_URL - assumed 'FRF_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fantasktic/menu-page.php on line 55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: service, fantasktic, support, admin
fantasktic/fantasktic.php Passed 13 tests
The main PHP script in "Fantasktic" version 2.0.1 is automatically included on every request by WordPress
52 characters long description:
A simple, secure way to fix any one thing WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin94 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 23 | 94 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin