Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.79ms] Passed 4 tests
An overview of server-side resources used by Media Features
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.30 ▼4.13 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.67 ▲0.25 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 45.08 ▲4.10 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 82.77 ▼13.45 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.58 ▲2.18 |
Categories /wp-admin/edit-tags.php?taxonomy=media_category | 3.36 | 34.97 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
media_features_plugin_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Media Features
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲54 | 14.74 ▲0.09 | 1.66 ▼0.30 | 44.15 ▼1.41 |
Dashboard /wp-admin | 2,217 ▲26 | 4.85 ▼0.02 | 115.14 ▼0.88 | 42.98 ▼5.54 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.04 ▲0.08 | 35.07 ▲0.64 | 34.47 ▲5.06 |
Add New Post /wp-admin/post-new.php | 1,544 ▲10 | 23.12 ▲0.03 | 682.75 ▲33.62 | 56.46 ▲5.39 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.20 ▲0.03 | 99.15 ▼1.23 | 43.65 ▲1.23 |
Categories /wp-admin/edit-tags.php?taxonomy=media_category | 1,250 | 2.30 | 31.02 | 35.15 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-features/media-features.php:64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots require images: #1 (Organize files and images with categories and filt type), #2 (Create categories fo media), #3 (Associate categories to files), #4 (More controllers for media files)
media-features/media-features.php 92% from 13 tests
"Media Features" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
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 plugin623 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 146 | 288 | 347 |
PO File | 2 | 100 | 106 | 264 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 26 | |
▷ Static methods | 25 | 96.15% |
▷ Public methods | 26 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 73.29KB | 31.78KB | ▼ 56.63% |
screenshot-2.png | 75.94KB | 30.91KB | ▼ 59.30% |
screenshot-1.png | 123.48KB | 47.92KB | ▼ 61.19% |
screenshot-3.png | 65.99KB | 24.99KB | ▼ 62.13% |