Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.23MB] [CPU: ▼40.75ms] Passed 4 tests
Analyzing server-side resources used by Ruven Themes: Post Formats UI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 20.08 ▼22.47 |
Dashboard /wp-admin | 2.78 ▼0.52 | 16.50 ▼30.97 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 16.55 ▼31.76 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 16.95 ▼77.78 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 15.53 ▼17.12 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-post-formats-ui/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/ruven-themes-post-formats-ui/assets/icon-256\303\227256.png"
- (new file) "wp-content/plugins/ruven-themes-post-formats-ui/assets/icon-128\303\227128.png"
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Ruven Themes: Post Formats UI
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 14.82 ▲0.45 | 1.89 ▲0.26 | 40.20 ▲0.72 |
Dashboard /wp-admin | 2,345 ▲157 | 6.49 ▲1.66 | 133.30 ▲21.29 | 42.97 ▼4.35 |
Posts /wp-admin/edit.php | 2,251 ▲162 | 3.41 ▲1.41 | 49.42 ▲9.27 | 32.93 ▼4.18 |
Add New Post /wp-admin/post-new.php | 6,767 ▲5,231 | 20.43 ▼2.75 | 889.51 ▲225.20 | 36.92 ▼21.53 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.13 ▼0.06 | 84.70 ▼14.41 | 47.26 ▲4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/ruven-themes-post-formats-ui/includes/cmb/init.php+746
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ruven-themes-post-formats-ui/includes/cmb/tests/phpunit/includes/bootstrap.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ruven-themes-post-formats-ui/includes/cmb/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ruven-themes-post-formats-ui/includes/cmb/init.php:41
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/ruven-themes-post-formats-ui/includes/cmb/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ruven-themes-post-formats-ui/ruven-themes-post-formats-ui.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: post formats ui, post formats
ruven-themes-post-formats-ui/ruven-themes-post-formats-ui.php Passed 13 tests
The main PHP script in "Ruven Themes: Post Formats UI" version 1.0 is automatically included on every request by WordPress
69 characters long description:
Extends the functionality of Ruven Themes by adding a Post Formats UI
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin5,377 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 319 | 405 | 2,261 |
PHP | 10 | 587 | 1,104 | 2,162 |
CSS | 2 | 61 | 21 | 540 |
Markdown | 3 | 89 | 0 | 289 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 50.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 139 | |
▷ Static methods | 34 | 24.46% |
▷ Public methods | 137 | 98.56% |
▷ Protected methods | 2 | 1.44% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/cmb/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/cmb/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
includes/cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/cmb/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |