Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/post-format-options/post-format-options.php+164
Non-static method Post_Format_Options::init() should not be called statically
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.16ms] Passed 4 tests
Server-side resources used by Post Format Options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.94 ▼36.52 |
Dashboard /wp-admin | 2.05 ▼1.26 | 4.87 ▼44.03 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.70 ▼40.30 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.70 ▼83.80 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.34 ▼32.37 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Post Format Options
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.80 ▲0.41 | 1.66 ▼0.07 | 39.61 ▼5.00 |
Dashboard /wp-admin | 2,207 ▲22 | 5.83 ▼0.04 | 100.93 ▼21.54 | 38.57 ▼2.73 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.06 | 40.03 ▲4.57 | 35.40 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.61 ▼5.17 | 651.68 ▼7.87 | 53.11 ▼11.35 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.02 | 93.24 ▼3.11 | 41.77 ▼1.41 |
Post Format Options /wp-admin/post-format-options.php | 26 | 0.44 | 0.13 | 12.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/post-format-options/post-format-options.php+164
Non-static method Post_Format_Options::init() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-format-options/post-format-options.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/post-format-options.php
- > Network (severe)
wp-admin/post-format-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: manage post formats, post formats, post formatting, video format, post formatting options...
post-format-options/post-format-options.php Passed 13 tests
The entry point to "Post Format Options" version 0.1 is a PHP file that has certain tags in its header comment area
85 characters long description:
Allows you to disable post formats and manage which user rules can use which formats.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin74 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 67 | 74 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.22 |
▷ 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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin