Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.51ms] Passed 4 tests
Server-side resources used by My Media Category
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.76 ▼4.91 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.74 ▼5.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.37 ▼5.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.22 ▼13.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.57 ▲2.14 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 3.23 | 34.35 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.23 | 37.05 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for My Media Category
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.18 ▼0.17 | 1.79 ▲0.17 | 42.21 ▲0.83 |
Dashboard /wp-admin | 2,206 ▲26 | 5.63 ▼0.02 | 90.21 ▼1.18 | 37.04 ▼2.51 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.02 ▲0.01 | 36.51 ▼6.37 | 38.01 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.11 ▼4.79 | 613.42 ▼33.10 | 113.10 ▲51.24 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.20 ▼0.00 | 105.85 ▲2.32 | 44.48 ▲1.47 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 1,327 | 2.12 | 30.60 | 28.65 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,463 | 2.12 | 29.22 | 32.55 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- category_children
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-media-category/index.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
9 plugin tags: tags, media, tag, categories, taxonmies...
my-media-category/index.php 85% from 13 tests
Analyzing the main PHP file in "My Media Category" version 1.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("my-media-category.php" instead of "index.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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 plugin93 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 57 | 93 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin