Benchmarks
Plugin footprint 65% 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.17MB] [CPU: ▼1.84ms] Passed 4 tests
Server-side resources used by Cool Media Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 39.76 ▲0.73 |
Dashboard /wp-admin | 3.50 ▲0.19 | 52.41 ▲3.42 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.35 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 90.71 ▼5.90 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.20 ▼2.57 |
Add New Role /wp-admin/admin.php?page=cmf-new-user-role | 3.39 | 36.43 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.43 | 38.93 |
Roles and Permissions /wp-admin/admin.php?page=cmf-user-roles | 3.39 | 36.12 |
Category Access /wp-admin/admin.php?page=cmf-manage-category-access | 3.39 | 37.63 |
Overview /wp-admin/admin.php?page=cmf-plugin-overview | 3.39 | 32.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_category_role |
New WordPress options |
---|
widget_theysaidso_widget |
category_item_access_by_role |
can_compress_scripts |
recovery_mode_email_last_sent |
category_children |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Cool Media Filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 13.57 ▼0.81 | 1.93 ▲0.09 | 39.88 ▼2.19 |
Dashboard /wp-admin | 2,253 ▲62 | 4.85 ▼1.04 | 107.67 ▲2.09 | 39.82 ▼5.76 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.00 ▼0.00 | 40.53 ▲3.22 | 34.39 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,554 ▲12 | 23.17 ▲0.23 | 656.27 ▼13.81 | 51.97 ▼11.81 |
Media Library /wp-admin/upload.php | 57 ▼1,334 | 0.44 ▼3.77 | 0.12 ▼102.10 | 9.70 ▼35.27 |
Add New Role /wp-admin/admin.php?page=cmf-new-user-role | 976 | 2.06 | 27.81 | 27.11 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,490 | 2.14 | 29.31 | 37.22 |
Roles and Permissions /wp-admin/admin.php?page=cmf-user-roles | 1,295 | 2.06 | 25.03 | 32.31 |
Category Access /wp-admin/admin.php?page=cmf-manage-category-access | 874 | 2.03 | 26.36 | 29.02 |
Overview /wp-admin/admin.php?page=cmf-plugin-overview | 836 | 2.05 | 27.55 | 45.77 |
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
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_category_role
- The uninstall procedure has failed, leaving 9 options in the database
- category_item_access_by_role
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- category_children
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_CategoryDropdown' not found in wp-content/plugins/cool-media-filter/classes/class-coolmediafilter-walker-category-mediagrid-filter.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cool-media-filter/class-coolmediafilter.php:73
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/cool-media-filter/classes/class-coolmediafilter-walker-media-taxonomy-checklist.php:8
- > PHP Fatal error
Uncaught Error: Class 'Walker_CategoryDropdown' not found in wp-content/plugins/cool-media-filter/classes/class-coolmediafilter-walker-category-filter.php:8
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== cool-media-filter ===
) - Tags: There are too many tags (12 tag instead of maximum 10)
cool-media-filter/class-coolmediafilter.php 92% from 13 tests
The primary PHP file in "Cool Media Filter" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cool-media-filter.php" instead of "class-coolmediafilter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,387 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 297 | 438 | 1,089 |
JavaScript | 4 | 28 | 22 | 151 |
CSS | 1 | 20 | 2 | 123 |
Markdown | 1 | 11 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 6 | 10.17% |
▷ Public methods | 59 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin