84% postbox-to-tab

Code Review | Postbox to Tab

WordPress plugin Postbox to Tab scored84%from 54 tests.

About plugin

  • Plugin page: postbox-to-tab
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2016
  • Latest release: Oct 21, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: Kuuak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.06ms] Passed 4 tests

A check of server-side resources used by Postbox to Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.57 ▼3.30
Dashboard /wp-admin3.35 ▲0.0443.65 ▼10.37
Posts /wp-admin/edit.php3.40 ▲0.0445.60 ▲1.05
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.66 ▼13.45
Media Library /wp-admin/upload.php3.27 ▲0.0435.64 ▼1.12
Postbox to Tab /wp-admin/tools.php?page=pbtt3.2329.65

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
pbtt_posttype
can_compress_scripts
theysaidso_admin_options
pbtt_zone
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Postbox to Tab
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.54 ▼0.931.83 ▲0.0643.72 ▲4.35
Dashboard /wp-admin2,213 ▲214.86 ▼0.0796.55 ▼10.4438.27 ▼7.28
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0541.01 ▲2.3035.59 ▲2.57
Add New Post /wp-admin/post-new.php1,533 ▲1423.19 ▼0.01592.14 ▼68.5832.68 ▼14.32
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.01103.01 ▲6.1545.78 ▲2.31
Postbox to Tab /wp-admin/tools.php?page=pbtt8232.0625.1230.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postbox-to-tab/options.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: plugin, postbox, editor, edit, custom post type...

postbox-to-tab/postbox-to-tab.php 92% from 13 tests

"Postbox to Tab" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin409 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16060143
PHP34271143
PO File2202074
CSS19049

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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