Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Compile error in wp-content/plugins/markup-to-featured-image/markup-to-featured-image.php+124
'break' not in the 'loop' or 'switch' context
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.51ms] Passed 4 tests
A check of server-side resources used by Markup to Featured Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.64 ▼0.87 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.94 ▼12.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.34 ▼4.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.63 ▼9.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.87 ▼3.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Markup to Featured Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.19 | 1.77 ▼0.30 | 40.01 ▼2.35 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▼0.04 | 94.03 ▲2.47 | 39.71 ▲0.14 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.09 | 40.75 ▲2.29 | 34.65 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▲0.18 | 677.86 ▲3.85 | 62.77 ▲12.12 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.21 ▲0.02 | 101.59 ▼2.15 | 45.13 ▲1.27 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/markup-to-featured-image/markup-to-featured-image.php on line 124
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
7 plugin tags: featured image, image, featured, posts, post...
markup-to-featured-image/markup-to-featured-image.php Passed 13 tests
The main PHP script in "Markup to Featured Image" version 1.0 is automatically included on every request by WordPress
88 characters long description:
Automatically set the featured image for a post based on custom markup in the body text.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin114 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 76 | 114 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 5 | |
▷ Named functions | 5 | 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
No PNG images were found in this plugin