10% post-format-options

Code Review | Post Format Options

WordPress plugin Post Format Options scored10%from 54 tests.

About plugin

  • Plugin page: post-format-options
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Apr 11, 2013
  • Latest release: Apr 12, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: tlovett1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,861 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.94 ▼36.52
Dashboard /wp-admin2.05 ▼1.264.87 ▼44.03
Posts /wp-admin/edit.php2.05 ▼1.315.70 ▼40.30
Add New Post /wp-admin/post-new.php2.05 ▼3.847.70 ▼83.80
Media Library /wp-admin/upload.php2.05 ▼1.184.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.80 ▲0.411.66 ▼0.0739.61 ▼5.00
Dashboard /wp-admin2,207 ▲225.83 ▼0.04100.93 ▼21.5438.57 ▼2.73
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0640.03 ▲4.5735.40 ▲0.54
Add New Post /wp-admin/post-new.php1,517 ▼1617.61 ▼5.17651.68 ▼7.8753.11 ▼11.35
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0293.24 ▼3.1141.77 ▼1.41
Post Format Options /wp-admin/post-format-options.php260.440.1312.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1246774

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 code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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