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.05MB] [CPU: ▼159.36ms] Passed 4 tests
A check of server-side resources used by FlatFolio - Portfolio & Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.23 | 28.81 ▲4.06 |
Dashboard /wp-admin | 3.19 ▲0.12 | 25.48 ▼15.17 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 24.96 ▼7.49 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.24 | 60.91 ▼607.30 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 21.19 ▼7.46 |
Categories /wp-admin/edit-tags.php?taxonomy=flatfolio-categories&post_type=flatfolio | 3.19 | 21.40 |
Settings /wp-admin/edit.php?post_type=flatfolio&page=flatfolio_options | 3.17 | 23.18 |
All Projects /wp-admin/edit.php?post_type=flatfolio | 3.22 | 23.80 |
Add New /wp-admin/post-new.php?post_type=flatfolio | 3.25 | 34.90 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
FlatFolio - Portfolio & Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,909 ▲258 | 16.00 ▲0.37 | 11.25 ▲5.70 | 76.70 ▼1.09 |
Dashboard /wp-admin | 3,003 ▲108 | 6.18 ▲0.06 | 120.80 ▼16.81 | 204.38 ▲25.48 |
Posts /wp-admin/edit.php | 2,807 ▲67 | 3.14 ▼0.08 | 65.43 ▲0.19 | 137.90 ▼2.76 |
Add New Post /wp-admin/post-new.php | 2,545 ▼1,198 | 16.82 ▼2.24 | 383.47 ▼61.44 | 187.92 ▲20.22 |
Media Library /wp-admin/upload.php | 1,815 ▲60 | 5.55 ▲0.04 | 127.59 ▼4.05 | 215.34 ▲28.62 |
Categories /wp-admin/edit-tags.php?taxonomy=flatfolio-categories&post_type=flatfolio | 1,821 | 2.72 | 59.63 | 137.37 |
Settings /wp-admin/edit.php?post_type=flatfolio&page=flatfolio_options | 1,094 | 2.41 | 56.09 | 114.26 |
All Projects /wp-admin/edit.php?post_type=flatfolio | 1,525 | 3.18 | 62.10 | 114.00 |
Add New /wp-admin/post-new.php?post_type=flatfolio | 11,038 | 9.46 | 214.32 | 291.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=flatfolio
- > User deprecated in wp-includes/functions.php+5586
contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/tpl/flatfolio-main.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'FF_DIRinc/mega-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/menus.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/assets.php:17
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/flatfolio.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/install.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/templates.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/posttypes/flatfolio.php:11
- > PHP Warning
Use of undefined constant FF_DIR - assumed 'FF_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/shortcodes.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatfolio-flat-cool-wp-portfolio/inc/metaboxes.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
flatfolio-flat-cool-wp-portfolio/flatfolio.php 92% from 13 tests
"FlatFolio - Portfolio & Gallery" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flatfolio-flat-cool-wp-portfolio.php" instead of "flatfolio.php")
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
No dangerous file extensions were detected4,168 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 83 | 21 | 2,101 |
PHP | 13 | 530 | 258 | 1,013 |
JavaScript | 4 | 179 | 112 | 538 |
SVG | 1 | 0 | 0 | 294 |
PO File | 1 | 90 | 90 | 222 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flatfolio_icon.png | 1.30KB | 0.40KB | ▼ 69.35% |
assets/img/no_image_large.png | 4.73KB | 1.94KB | ▼ 59.02% |
assets/img/no_image_thumb.png | 4.20KB | 1.79KB | ▼ 57.33% |
assets/img/no_image_full.png | 5.68KB | 2.23KB | ▼ 60.68% |
assets/img/main_icon.png | 1.58KB | 0.91KB | ▼ 42.15% |