84% tabbed-cats

Code Review | Tabbed Cats

WordPress plugin Tabbed Cats scored84%from 54 tests.

About plugin

  • Plugin page: tabbed-cats
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 11, 2015
  • Latest release: Feb 9, 2021
  • Number of updates: 6
  • Update frequency: every 343.7 days
  • Top authors: theode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.77ms] Passed 4 tests

Analyzing server-side resources used by Tabbed Cats
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.74 ▲1.59
Dashboard /wp-admin3.31 ▲0.0047.51 ▼6.32
Posts /wp-admin/edit.php3.36 ▲0.0051.58 ▲2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.63 ▼17.92
Media Library /wp-admin/upload.php3.23 ▲0.0033.47 ▼0.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Tabbed Cats: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.73 ▼0.628.62 ▲7.1040.29 ▼1.10
Dashboard /wp-admin2,189 ▲125.54 ▼0.0484.12 ▼4.4640.58 ▼3.97
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0539.69 ▼2.9335.53 ▼9.14
Add New Post /wp-admin/post-new.php1,528 ▲223.11 ▼0.59656.02 ▼11.5156.38 ▲1.07
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.0396.14 ▼9.3642.42 ▲0.00

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/tabbed-cats/tab_loop.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tabbed-cats/tabbed-cats.php:43
    • > PHP Notice
      Undefined variable: topcat in wp-content/plugins/tabbed-cats/tab_loop.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: frontend, category, categories, register, tabs...

tabbed-cats/tabbed-cats.php Passed 13 tests

The main file in "Tabbed Cats" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
tabbed cats is plugin to tab categories usage [tabbed_cats top="0"]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin117 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2383874
CSS11043

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin