Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.87ms] Passed 4 tests
Analyzing server-side resources used by Map Categories To Attachment
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.30 ▼5.84 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.27 ▼23.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.25 ▲2.31 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.67 ▼12.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.24 ▲3.41 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.24 | 37.90 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
category_children |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Map Categories To Attachment
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.75 ▲0.58 | 1.82 ▲0.00 | 42.78 ▼1.97 |
Dashboard /wp-admin | 2,196 ▲16 | 5.58 ▼0.11 | 84.55 ▼8.68 | 38.37 ▼6.64 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 39.24 ▲1.82 | 37.21 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.22 ▲5.79 | 682.03 ▼6.45 | 55.04 ▼7.64 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.06 | 98.98 ▼21.75 | 45.55 ▲0.49 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,456 | 2.15 | 28.53 | 33.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- category_children
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-categories-to-attachment/map-categories-to-attachment.php:30
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Donate link: Invalid URI ("")
map-categories-to-attachment/map-categories-to-attachment.php Passed 13 tests
Analyzing the main PHP file in "Map Categories To Attachment" version 1.0
58 characters long description:
Adds category meta box to attachment edit attachment page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin102 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 17 | 102 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin