Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.82ms] Passed 4 tests
A check of server-side resources used by Curriculum Vitae (by osFlake)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.82 ▲2.11 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.47 ▲3.46 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.41 ▲3.96 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 83.66 ▼12.80 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 42.53 ▲8.97 |
CV - category /wp-admin/edit-tags.php?taxonomy=cv-category&post_type=opisy | 3.33 | 35.53 |
CV - settings /wp-admin/edit.php?post_type=opisy&page=cv-settings-page | 3.31 | 33.98 |
Add new /wp-admin/post-new.php?post_type=opisy | 3.48 | 51.84 |
About /wp-admin/edit.php?post_type=opisy&page=cv-about-page | 3.31 | 34.43 |
All items /wp-admin/edit.php?post_type=opisy | 3.38 | 33.20 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_osflake_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Curriculum Vitae (by osFlake)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲144 | 13.40 ▼1.21 | 1.68 ▲0.11 | 41.27 ▲0.42 |
Dashboard /wp-admin | 2,282 ▲94 | 5.06 ▼0.85 | 115.06 ▼2.41 | 43.43 ▼2.39 |
Posts /wp-admin/edit.php | 2,177 ▲88 | 2.39 ▲0.34 | 36.83 ▼1.41 | 35.39 ▲3.82 |
Add New Post /wp-admin/post-new.php | 1,590 ▲53 | 23.66 ▲0.06 | 694.78 ▲25.78 | 48.46 ▼4.70 |
Media Library /wp-admin/upload.php | 1,471 ▲83 | 4.44 ▲0.25 | 110.25 ▲9.80 | 48.65 ▲6.48 |
CV - category /wp-admin/edit-tags.php?taxonomy=cv-category&post_type=opisy | 1,354 | 2.30 | 31.58 | 29.42 |
CV - settings /wp-admin/edit.php?post_type=opisy&page=cv-settings-page | 1,160 | 2.47 | 57.36 | 29.30 |
Add new /wp-admin/post-new.php?post_type=opisy | 2,414 | 8.05 | 170.30 | 66.56 |
About /wp-admin/edit.php?post_type=opisy&page=cv-about-page | 876 | 2.11 | 25.70 | 29.82 |
All items /wp-admin/edit.php?post_type=opisy | 1,162 | 2.37 | 38.13 | 29.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_osflake_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 6× 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/curriculum-vitae-by-osflake/cv-osflake.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/curriculum-vitae-by-osflake/lib/shortcode/cv-shortcode.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/curriculum-vitae-by-osflake/lib/admin/cv-admin.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/curriculum-vitae-by-osflake/lib/menu/cv-menu.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/curriculum-vitae-by-osflake/css/cv-osflake.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/curriculum-vitae-by-osflake/lib/widget/cv-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: admin, panel, vitae, curriculum, cv...
curriculum-vitae-by-osflake/cv-osflake.php 85% from 13 tests
The principal PHP file in "Curriculum Vitae (by osFlake)" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("curriculum-vitae-by-osflake.php" instead of "cv-osflake.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin674 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 91 | 61 | 396 |
PO File | 2 | 96 | 150 | 226 |
CSS | 1 | 7 | 3 | 52 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 2.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 | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.81MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/h2_trigger.png | 2.59KB | 1.59KB | ▼ 38.58% |
screenshot-5.png | 111.35KB | 33.70KB | ▼ 69.74% |
screenshot-4.png | 41.95KB | 18.51KB | ▼ 55.87% |
img/pin_icon.png | 11.94KB | 5.21KB | ▼ 56.32% |
screenshot-3.png | 211.73KB | 62.96KB | ▼ 70.26% |