Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼157.31ms] Passed 4 tests
Analyzing server-side resources used by FotkiPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▲0.63 | 40.79 ▲21.51 |
Dashboard /wp-admin | 3.58 ▲0.52 | 49.50 ▲2.96 |
Posts /wp-admin/edit.php | 3.62 ▲0.52 | 50.76 ▲4.04 |
Add New Post /wp-admin/post-new.php | 3.36 ▼2.07 | 29.52 ▼629.14 |
Media Library /wp-admin/upload.php | 3.52 ▲0.51 | 34.82 ▼7.09 |
Server storage [IO: ▲0.62MB] [DB: ▲0.62MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (0.06KB) outside of "wp-content/plugins/fotkipress/" and "wp-content/uploads/"
- (new file) wp-content/fotkipress/.fotkipress/settings.2BhP7qJ4bE9Feft39zXXCehwtKOrVA.json
Filesystem: 70 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by FotkiPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲126 | 16.20 ▲0.19 | 9.36 ▲2.40 | 47.32 ▼4.88 |
Dashboard /wp-admin | 2,993 ▲59 | 5.91 ▼0.21 | 155.98 ▲6.64 | 111.32 ▼8.56 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▼0.00 | 73.53 ▲2.63 | 106.90 ▲10.66 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 17.97 ▼0.73 | 370.52 ▼4.33 | 117.73 ▼6.04 |
Media Library /wp-admin/upload.php | 1,830 ▲26 | 5.02 ▼0.01 | 153.18 ▼0.45 | 119.54 ▼10.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no 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
Even though no errors were found, 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 take a closer look at the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/lib/class.fotkipress-file-indexes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/public/class.fotkipress-public-routes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/public/class.fotkipress-init-public.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/admin/class.fotkipress-admin-routes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fotkipress/plugin-admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/admin/class.fotkipress-init-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/admin/forms/class.fotkipress-feedbackform.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/admin/forms/class.fotkipress-settingsform.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fotkipress/public/class.fotkipress-shortcode.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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: Please fix this invalid URI: ""
- Plugin Name: You should set the name of your plugin on the first line (
=== fotkipress ===
)
fotkipress/index.php 92% from 13 tests
The entry point to "FotkiPress" version 0.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fotkipress.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin10,306 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 4,043 |
PHP | 25 | 998 | 11 | 3,039 |
Vuejs Component | 17 | 324 | 10 | 1,424 |
JavaScript | 19 | 365 | 27 | 1,273 |
CSS | 3 | 109 | 0 | 471 |
SVG | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 180 | 100.00% |
▷ Public methods | 180 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin