84% disable-post-format-ui

Code Review | Disable Post Format UI

WordPress plugin Disable Post Format UI scored84%from 54 tests.

About plugin

  • Plugin page: disable-post-form...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: May 16, 2013
  • Latest release: May 16, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,162 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.79ms] Passed 4 tests

Server-side resources used by Disable Post Format UI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.35 ▼5.31
Dashboard /wp-admin3.31 ▼0.0449.35 ▼18.62
Posts /wp-admin/edit.php3.36 ▲0.0046.49 ▼6.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.41 ▼8.25
Media Library /wp-admin/upload.php3.23 ▲0.0036.19 ▲1.13

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Post Format UI
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.071.80 ▲0.1344.18 ▲1.60
Dashboard /wp-admin2,195 ▲155.55 ▼0.0685.88 ▼7.4838.83 ▼10.65
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0436.11 ▼0.4733.61 ▼8.20
Add New Post /wp-admin/post-new.php1,526 ▼923.06 ▲4.95649.79 ▼22.6550.23 ▼20.47
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.0596.03 ▼9.9940.98 ▼6.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-post-format-ui/disable-post-format-ui.php:25

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: posts, post, admin, post-formats

disable-post-format-ui/disable-post-format-ui.php Passed 13 tests

"Disable Post Format UI" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Completely disables the post format UI added in WordPress 3.6.

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 plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12223

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin