Benchmarks
Plugin footprint 83% from 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.31MB] [CPU: ▲2.92ms] Passed 4 tests
A check of server-side resources used by Simple Folio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 52.47 ▲7.43 |
Dashboard /wp-admin | 3.66 ▲0.36 | 61.61 ▲7.86 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 57.10 ▲8.30 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 91.14 ▼11.90 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 44.73 ▲10.20 |
New Item /wp-admin/post-new.php?post_type=simple_folio_item | 3.71 | 61.79 |
Items /wp-admin/edit.php?post_type=simple_folio_item | 3.55 | 46.30 |
Filter Tags /wp-admin/edit-tags.php?taxonomy=simple_folio_tag&post_type=simple_folio_item | 3.51 | 44.62 |
Groups /wp-admin/edit-tags.php?taxonomy=simple_folio_group&post_type=simple_folio_item | 3.51 | 44.51 |
Settings /wp-admin/edit.php?post_type=simple_folio_item&page=simple-folio-settings | 3.49 | 40.81 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
simple_folio_options |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Folio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲192 | 13.49 ▼0.92 | 9.10 ▲7.38 | 41.75 ▼3.32 |
Dashboard /wp-admin | 2,245 ▲68 | 5.61 ▲0.10 | 85.01 ▼19.64 | 37.75 ▼6.29 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.01 ▲0.04 | 35.56 ▲0.02 | 32.70 ▼5.33 |
Add New Post /wp-admin/post-new.php | 1,566 ▲38 | 23.42 ▲0.27 | 664.61 ▲2.14 | 55.75 ▲2.18 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.25 ▲0.09 | 95.97 ▼3.01 | 44.55 ▲2.27 |
New Item /wp-admin/post-new.php?post_type=simple_folio_item | 2,436 | 7.80 | 175.50 | 68.63 |
Items /wp-admin/edit.php?post_type=simple_folio_item | 1,144 | 1.94 | 31.39 | 31.90 |
Filter Tags /wp-admin/edit-tags.php?taxonomy=simple_folio_tag&post_type=simple_folio_item | 1,290 | 2.16 | 27.87 | 30.09 |
Groups /wp-admin/edit-tags.php?taxonomy=simple_folio_group&post_type=simple_folio_item | 1,321 | 2.16 | 25.77 | 29.55 |
Settings /wp-admin/edit.php?post_type=simple_folio_item&page=simple-folio-settings | 986 | 2.04 | 23.80 | 28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- simple_folio_options
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-folio/admin/partials/simple-folio-admin-display.php
- > /wp-content/plugins/simple-folio/public/partials/simple-folio-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-folio/includes/global-functions/simple-folio-global-functions.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: filter portfolio, showcase, projects listing, portfolio, four column...
simple-folio/simple-folio.php Passed 13 tests
The primary PHP file in "Simple Folio" version 1.1.0 is used by WordPress to initiate all plugin functionality
84 characters long description:
This plugin lets you to create beautiful filterable slide down responsive portfolio.
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
There were no executable files found in this plugin3,711 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 413 | 444 | 1,522 |
PHP | 24 | 235 | 1,007 | 1,077 |
SVG | 1 | 0 | 0 | 640 |
CSS | 3 | 23 | 39 | 472 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sprite.png | 15.54KB | 0.66KB | ▼ 95.73% |