Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▲2.94ms] Passed 4 tests
A check of server-side resources used by WordPress Media Category
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.30 ▲4.62 |
Dashboard /wp-admin | 3.52 ▲0.22 | 58.48 ▲7.35 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 60.06 ▲8.52 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 98.04 ▼2.40 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 39.03 ▲2.20 |
Media Category /wp-admin/edit-tags.php?taxonomy=media_category&post_type=attachment | 3.39 | 42.61 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Media Category
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲197 | 14.76 ▲0.56 | 2.03 ▲0.15 | 44.73 ▲3.65 |
Dashboard /wp-admin | 2,349 ▲158 | 6.44 ▲1.55 | 135.27 ▲34.22 | 42.99 ▲0.29 |
Posts /wp-admin/edit.php | 2,258 ▲169 | 3.50 ▲1.48 | 56.39 ▲16.30 | 36.20 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.31 ▲5.78 | 657.79 ▼41.03 | 35.99 ▼23.69 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.14 ▼0.07 | 83.75 ▼29.27 | 44.79 ▼1.63 |
Media Category /wp-admin/edit-tags.php?taxonomy=media_category&post_type=attachment | 1,428 | 3.08 | 42.36 | 28.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/media-category/admin/class-admin-review.php:311
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (The screenshot shows the edit media admin panel, showing the listed categories and corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (The screenshot shows the media list with assigned category and corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (The screenshot shows the media list with assigned category showing where the shortcode is executing and corresponds to screenshot-3.(png|jpg|jpeg|gif).)
media-category/wp-media-category.php 92% from 13 tests
The main PHP script in "WordPress Media Category" version 1.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("media-category.php" instead of "wp-media-category.php")
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
Everything looks great! No dangerous files found in this plugin11,447 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 9,670 |
JavaScript | 6 | 185 | 43 | 908 |
PHP | 11 | 179 | 632 | 620 |
CSS | 4 | 30 | 3 | 193 |
PO File | 2 | 11 | 12 | 56 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 35 | 85.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 14.63% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
11 PNG files occupy 1.60MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 682.57KB | 249.70KB | ▼ 63.42% |
public/resource/transparent.png | 0.11KB | 0.09KB | ▼ 13.64% |
screenshot-3.png | 166.87KB | 50.82KB | ▼ 69.55% |
public/resource/opacity.png | 0.11KB | 0.09KB | ▼ 12.84% |
public/resource/close.png | 0.27KB | 0.29KB | 0.00% |