84% tabify-edit-screen

Code Review | Tabify Edit Screen

WordPress plugin Tabify Edit Screen scored84%from 54 tests.

About plugin

  • Plugin page: tabify-edit-screen
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.6.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Feb 28, 2021
  • Number of updates: 103
  • Update frequency: every 31.6 days
  • Top authors: markoheijnen (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

900+ active /36,534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.56ms] Passed 4 tests

This is a short check of server-side resources used by Tabify Edit Screen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.72 ▲1.36
Dashboard /wp-admin3.33 ▲0.0349.70 ▲3.33
Posts /wp-admin/edit.php3.38 ▲0.0345.62 ▼3.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.91 ▼7.10
Media Library /wp-admin/upload.php3.25 ▲0.0236.20 ▲3.67
Tabify edit screen /wp-admin/options-general.php?page=tabify-edit-screen3.2843.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Tabify Edit Screen
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.45 ▲0.181.70 ▲0.0838.36 ▲2.35
Dashboard /wp-admin2,199 ▲195.57 ▼0.0886.19 ▲0.3138.40 ▼3.98
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0136.90 ▼5.0331.27 ▼10.66
Add New Post /wp-admin/post-new.php1,531 ▼1323.08 ▲5.09583.17 ▼27.8950.62 ▼23.19
Media Library /wp-admin/upload.php1,407 ▲44.19 ▲0.0499.48 ▼7.3240.25 ▼1.35
Tabify edit screen /wp-admin/options-general.php?page=tabify-edit-screen1,6142.8658.4333.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tabify-edit-screen/tabify-edit-screen.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Tabify_Edit_Screen_Settings_Base' not found in wp-content/plugins/tabify-edit-screen/inc/settings-posttype.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: admin tabs, tabs plugin, edit, posts, post...

tabify-edit-screen/tabify-edit-screen.php Passed 13 tests

The main PHP script in "Tabify Edit Screen" version 1.0.0 is automatically included on every request by WordPress
65 characters long description:
Enables tabs in the edit screen and manage them from the back-end

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,533 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP9331470991
JavaScript66214240
CSS24313207
PO File2263270
JSON10025

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.44
▷ Minimum class complexity4.00
▷ Maximum class complexity40.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods4159.42%
▷ Protected methods710.14%
▷ Private methods2130.43%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin